Skip to content

Commit

Permalink
add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Oct 25, 2024
1 parent 53a8311 commit 16734a1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
repos:
- repo: https://github.com/psf/black
rev: stable
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
hooks:
- id: black
language_version: python3.8
args: [--line-length=120, --skip-string-normalization,--exclude=lib/exabgp/vendoring]
# Run the linter.
- id: ruff
args: [--fix --exclude lib/exabgp/vendoring]
# Run the formatter.
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
args: [--exclude src/exabgp/vendoring]
additional_dependencies: [flake8-bugbear]

0 comments on commit 16734a1

Please sign in to comment.