Skip to content

Commit a0ae875

Browse files
committed
Replace old pre-commit config with ruff config
See: https://github.com/astral-sh/ruff-pre-commit
1 parent d12410b commit a0ae875

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
1-
repos:
2-
# First, autoflake the code to avoid issues that could be solved quickly
3-
- repo: https://github.com/myint/autoflake
4-
rev: v1.4
5-
hooks:
6-
- id: autoflake
7-
args: ["--in-place", "--remove-all-unused-imports"]
8-
# Then, flake
9-
- repo: https://github.com/PyCQA/flake8
10-
rev: 4.0.1
11-
hooks:
12-
- id: flake8
13-
additional_dependencies:
14-
- "flake8-typing-imports"
15-
- "Flake8-pyproject"
16-
# Next, sort imports
17-
- repo: https://github.com/PyCQA/isort
18-
rev: 5.10.1
19-
hooks:
20-
- id: isort
21-
# Finally, lint
22-
- repo: https://github.com/psf/black
23-
rev: 22.3.0
24-
hooks:
25-
- id: black
26-
- repo: https://github.com/abravalheri/validate-pyproject
27-
rev: v0.10.1
28-
hooks:
29-
- id: validate-pyproject
1+
- repo: https://github.com/astral-sh/ruff-pre-commit
2+
# ruff version
3+
rev: v0.6.2
4+
hooks:
5+
# run the linter
6+
- id: ruff
7+
# run the formatter
8+
- id: ruff-format

0 commit comments

Comments
 (0)