Skip to content

Commit cda2f91

Browse files
committed
pre-commit-config: move back to black and autoflake
While ruff is fast, it's conflicting with reorder-python-imports and I'll stick to the latter.
1 parent b8e0784 commit cda2f91

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ repos:
2020
- --add-import
2121
- from __future__ import annotations
2222

23-
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.3.2
25-
hooks:
26-
- id: ruff
27-
- id: ruff-format
28-
2923
- repo: https://github.com/asottile/pyupgrade
3024
rev: v3.15.1
3125
hooks:
@@ -45,6 +39,16 @@ repos:
4539
hooks:
4640
- id: validate-pyproject
4741

42+
- repo: https://github.com/psf/black
43+
rev: "24.2.0"
44+
hooks:
45+
- id: black
46+
47+
- repo: https://github.com/pycqa/autoflake
48+
rev: v2.3.0
49+
hooks:
50+
- id: autoflake
51+
4852
- repo: https://github.com/fsouza/mirrors-pyright
4953
rev: v1.1.353
5054
hooks:

0 commit comments

Comments
 (0)