File tree Expand file tree Collapse file tree 1 file changed +8
-29
lines changed
Expand file tree Collapse file tree 1 file changed +8
-29
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments