File tree 2 files changed +8
-17
lines changed
2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,12 @@ repos:
18
18
- id : end-of-file-fixer
19
19
- id : trailing-whitespace
20
20
21
- - repo : https://github.com/pycqa/isort
22
- rev : 5.12.0
21
+ - repo : https://github.com/astral-sh/ruff-pre-commit
22
+ rev : v0.1.4
23
23
hooks :
24
- - id : isort
25
-
26
- - repo : https://github.com/psf/black
27
- rev : 23.10.0
28
- hooks :
29
- - id : black
30
-
31
- - repo : https://github.com/PyCQA/flake8
32
- rev : 6.1.0
33
- hooks :
34
- - id : flake8
35
- additional_dependencies : [flake8-bugbear~=22.7]
24
+ - id : ruff
25
+ args : ["--fix", "--show-fixes"]
26
+ - id : ruff-format
36
27
37
28
- repo : https://github.com/pre-commit/mirrors-mypy
38
29
rev : v1.6.1
Original file line number Diff line number Diff line change @@ -71,6 +71,6 @@ strict_equality = true
71
71
module = [" docutils.*" , " yaml.*" ]
72
72
ignore_missing_imports = true
73
73
74
- [ tool . isort ]
75
- profile = " black "
76
- src_paths = [ " sphinx_external_toc " , " tests " ]
74
+
75
+ [ tool . ruff . lint . isort ]
76
+ force-sort-within-sections = true
You can’t perform that action at this time.
0 commit comments