@@ -60,16 +60,31 @@ skip = [
60
60
]
61
61
62
62
[tool .ruff ]
63
- line-length = 120
64
63
target-version = " py38"
64
+ line-length = 120
65
+ format.preview = true
66
+ format.docstring-code-line-length = 100
67
+
68
+ format.docstring-code-format = true
69
+ lint.select = [
70
+ " ALL" ,
71
+ ]
72
+ lint.per-file-ignores."tests/**/*.py" = [
73
+ " D" , # don"t care about documentation in tests
74
+ " FBT" , # don"t care about booleans as positional arguments in tests
75
+ " INP001" , # no implicit namespace
76
+ " PLC2701" , # private import
77
+ " PLR0913" , # any number of arguments in tests
78
+ " PLR0917" , # any number of arguments in tests
79
+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
80
+ " S101" , # asserts allowed in tests...
81
+ " S603" , # `subprocess` call: check for execution of untrusted input
82
+ ]
65
83
lint.isort = { known-first-party = [
66
84
" pyproject_fmt_rust" ,
67
85
], required-imports = [
68
86
" from __future__ import annotations" ,
69
87
] }
70
- lint.select = [
71
- " ALL" ,
72
- ]
73
88
lint.ignore = [
74
89
" ANN101" , # no type annotation for self
75
90
" ANN401" , # allow Any as type annotation
@@ -81,22 +96,6 @@ lint.ignore = [
81
96
" S104" , # Possible binding to all interface
82
97
]
83
98
lint.preview = true
84
- format.preview = true
85
- format.docstring-code-format = true
86
- format.docstring-code-line-length = 100
87
-
88
- [tool .ruff .lint .per-file-ignores ]
89
- "tests/**/*.py" = [
90
- " D" , # don"t care about documentation in tests
91
- " FBT" , # don"t care about booleans as positional arguments in tests
92
- " INP001" , # no implicit namespace
93
- " PLC2701" , # private import
94
- " PLR0913" , # any number of arguments in tests
95
- " PLR0917" , # any number of arguments in tests
96
- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
97
- " S101" , # asserts allowed in tests...
98
- " S603" , # `subprocess` call: check for execution of untrusted input
99
- ]
100
99
101
100
[tool .codespell ]
102
101
builtin = " clear,usage,en-GB_to_en-US"
0 commit comments