Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- --profile=black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
Expand All @@ -32,9 +32,6 @@ repos:
- id: check-symlinks
- id: mixed-line-ending
- id: sort-simple-yaml
- id: fix-encoding-pragma
args:
- --remove
- id: pretty-format-json
args:
- --autofix
Expand All @@ -47,28 +44,15 @@ repos:
- id: python-no-eval
- id: python-no-log-warn

- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort
name: Run isort to sort imports
files: \.py$
# To keep consistent with the global isort skip config defined in setup.cfg
exclude: ^build/.*$|^.tox/.*$|^venv/.*$
args:
- --lines-after-imports=2
- --profile=black
- --line-length=80

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.7
rev: v0.14.11
hooks:
- id: ruff-check
types_or: [python,pyi]
args:
- --fix
- --target-version=py311
- --select=B,C,E,F,W,B9
- --select=B,C,E,F,W,B9,I
- --line-length=80
- --ignore=E203,E402,E501,E261
- id: ruff-format
Expand Down
Loading