Skip to content

Commit

Permalink
Use ruff in place of black and reorder-python-imports
Browse files Browse the repository at this point in the history
Unfortunately black and reorder-python-imports are no longer compatible between each other:

asottile/reorder-python-imports#367
asottile/reorder-python-imports#366
psf/black#4175

Take this opportunity to try out ruff.
  • Loading branch information
nicoddemus committed Jan 29, 2024
1 parent 001d2c0 commit 95c7f92
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ repos:
rev: v2.2.6
hooks:
- id: codespell
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand All @@ -23,11 +19,13 @@ repos:
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: reorder-python-imports
args: ['--application-directories=execnet', --py37-plus]
- id: ruff
args: [ --fix ]
exclude: "^doc/example"
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: 'v1.1.1'
hooks:
Expand Down

0 comments on commit 95c7f92

Please sign in to comment.