1
1
[tool .ruff ]
2
+ target-version = " py37"
3
+
4
+ line-length = 616
2
5
select = [
3
- " C4" , # flake8-comprehensions
4
- " C90" , # mccabe
5
- " E" , # pycodestyle
6
- " F" , # Pyflakes
7
- " I" , # isort
8
- " ICN" , # flake8-import-conventions
9
- " PGH" , # pygrep-hooks
10
- " PIE" , # flake8-pie
11
- " PLC" , # Pylint conventions
12
- " PLE" , # Pylint errors
13
- " PLR091" , # Pylint refactor just for max-args, max-branches, etc.
14
- " PYI" , # flake8-pyi
15
- " RSE" , # flake8-raise
16
- " RUF" , # Ruff-specific rules
17
- " T10" , # flake8-debugger
18
- " TCH" , # flake8-type-checking
19
- " TID" , # flake8-tidy-imports
20
- " UP" , # pyupgrade
21
- " W" , # pycodestyle
22
- " YTT" , # flake8-2020
6
+ " C4" , # flake8-comprehensions
7
+ " C90" , # mccabe
8
+ " E" , # pycodestyle
9
+ " F" , # Pyflakes
10
+ " I" , # isort
11
+ " ICN" , # flake8-import-conventions
12
+ " PGH" , # pygrep-hooks
13
+ " PIE" , # flake8-pie
14
+ " PLC" , # Pylint conventions
15
+ " PLE" , # Pylint errors
16
+ " PLR091" , # Pylint refactor just for max-args, max-branches, etc.
17
+ " PYI" , # flake8-pyi
18
+ " RSE" , # flake8-raise
19
+ " RUF" , # Ruff-specific rules
20
+ " T10" , # flake8-debugger
21
+ " TCH" , # flake8-type-checking
22
+ " TID" , # flake8-tidy-imports
23
+ " UP" , # pyupgrade
24
+ " W" , # pycodestyle
25
+ " YTT" , # flake8-2020
23
26
]
24
27
ignore = [
25
28
" E402" ,
@@ -31,19 +34,11 @@ ignore = [
31
34
" PLC1901" ,
32
35
" RUF001" ,
33
36
]
34
- line-length = 616
35
- target-version = " py37"
36
-
37
- [tool .ruff .mccabe ]
38
- max-complexity = 21
39
-
40
- [tool .ruff .pylint ]
41
- max-args = 8
42
- max-branches = 18
43
- max-statements = 73
44
-
45
- [tool .ruff .per-file-ignores ]
46
- "test/*" = [" S101" ]
37
+ per-file-ignores."test/*" = [ " S101" ]
38
+ pylint.max-args = 8
39
+ pylint.max-branches = 18
40
+ pylint.max-statements = 73
41
+ mccabe.max-complexity = 21
47
42
48
43
[tool .codespell ]
49
44
ignore-words-list = ' didnt'
0 commit comments