Skip to content

Commit de73419

Browse files
committed
pre-commit-config: move to ruff
1 parent 427ec36 commit de73419

File tree

1 file changed

+6
-33
lines changed

1 file changed

+6
-33
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,18 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88

9-
- repo: https://github.com/asottile/reorder-python-imports
10-
rev: v3.16.0
11-
hooks:
12-
- id: reorder-python-imports
13-
args:
14-
- --py39-plus
15-
- --add-import
16-
- from __future__ import annotations
17-
18-
- repo: https://github.com/asottile/pyupgrade
19-
rev: v3.21.2
20-
hooks:
21-
- id: pyupgrade
22-
args:
23-
- --py310-plus
24-
25-
- repo: https://github.com/asottile/add-trailing-comma
26-
rev: v4.0.0
27-
hooks:
28-
- id: add-trailing-comma
29-
args:
30-
- --py36-plus
31-
329
- repo: https://github.com/abravalheri/validate-pyproject
3310
rev: v0.25
3411
hooks:
3512
- id: validate-pyproject
3613

37-
- repo: https://github.com/psf/black
38-
rev: "26.1.0"
39-
hooks:
40-
- id: black
41-
42-
- repo: https://github.com/pycqa/autoflake
43-
rev: v2.3.1
44-
hooks:
45-
- id: autoflake
46-
4714
- repo: https://github.com/fsouza/mirrors-pyright
4815
rev: v1.1.275
4916
hooks:
5017
- id: pyright
18+
19+
- repo: https://github.com/astral-sh/ruff-pre-commit
20+
rev: v0.15.1
21+
hooks:
22+
- id: ruff-check
23+
- id: ruff-format

0 commit comments

Comments
 (0)