Skip to content

Commit 95c7f92

Browse files
committed
Use ruff in place of black and reorder-python-imports
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.
1 parent 001d2c0 commit 95c7f92

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ repos:
33
rev: v2.2.6
44
hooks:
55
- id: codespell
6-
- repo: https://github.com/psf/black
7-
rev: 23.11.0
8-
hooks:
9-
- id: black
106
- repo: https://github.com/asottile/blacken-docs
117
rev: 1.16.0
128
hooks:
@@ -23,11 +19,13 @@ repos:
2319
hooks:
2420
- id: pyupgrade
2521
args: [--py37-plus]
26-
- repo: https://github.com/asottile/reorder-python-imports
27-
rev: v3.12.0
22+
- repo: https://github.com/astral-sh/ruff-pre-commit
23+
rev: v0.1.14
2824
hooks:
29-
- id: reorder-python-imports
30-
args: ['--application-directories=execnet', --py37-plus]
25+
- id: ruff
26+
args: [ --fix ]
27+
exclude: "^doc/example"
28+
- id: ruff-format
3129
- repo: https://github.com/PyCQA/doc8
3230
rev: 'v1.1.1'
3331
hooks:

0 commit comments

Comments
 (0)