File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : v0.2.0
3
+ rev : v0.3.2
4
4
hooks :
5
5
- id : ruff
6
6
args :
7
7
- --fix
8
- # - id: ruff-format # TODO: enable when the time is right
8
+ - id : ruff-format
9
9
- repo : https://github.com/pre-commit/pre-commit-hooks
10
10
rev : v4.5.0
11
11
hooks :
Original file line number Diff line number Diff line change 8
8
" tests" ,
9
9
" benchmarking"
10
10
]
11
+ target-version = " py38"
12
+ line-length = 119
13
+
14
+ [tool .ruff .lint ]
11
15
select = [
12
16
" B" , # bugbear: security warnings
13
17
" E" , # pycodestyle
@@ -17,7 +21,6 @@ select = [
17
21
" UP" , # alert you when better syntax is available in your python version
18
22
" RUF" , # the ruff developer's own rules
19
23
]
20
- target-version = " py38"
21
24
ignore = [
22
25
" B007" , # Loop control variable not used within the loop body (TODO: enable)
23
26
" B028" , # Warning without stacklevel (TODO: enable)
@@ -30,7 +33,7 @@ ignore = [
30
33
]
31
34
ignore-init-module-imports = true # allow to expose in __init__.py via imports
32
35
33
- [tool .ruff .extend-per-file-ignores ]
36
+ [tool .ruff .lint . extend-per-file-ignores ]
34
37
"**/__init__.py" = [" F401" ] # allow unused imports in __init__.py
35
38
"{benchmarking,tests}/**/*.py" = [
36
39
" B007" ,
@@ -42,7 +45,7 @@ ignore-init-module-imports = true # allow to expose in __init__.py via imports
42
45
" UP030" ,
43
46
]
44
47
45
- [tool .ruff .isort ]
48
+ [tool .ruff .lint . isort ]
46
49
combine-as-imports = true
47
50
detect-same-package = true
48
51
force-sort-within-sections = true
You can’t perform that action at this time.
0 commit comments