@@ -72,11 +72,25 @@ version.source = "vcs"
72
72
line-length = 120
73
73
74
74
[tool .ruff ]
75
- line-length = 120
76
75
target-version = " py39"
76
+ line-length = 120
77
+ format.preview = true
78
+ format.docstring-code-line-length = 100
79
+ format.docstring-code-format = true
77
80
lint.select = [
78
81
" ALL" ,
79
82
]
83
+ lint.per-file-ignores."tests/**/*.py" = [
84
+ " D" , # don't care about documentation in tests
85
+ " FBT" , # don"t care about booleans as positional arguments in tests
86
+ " INP001" , # no implicit namespace
87
+ " PLC2701" , # private imports
88
+ " PLR0913" , # any number of arguments in tests
89
+ " PLR0917" , # any number of arguments in tests
90
+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
91
+ " S101" , # asserts allowed in tests...
92
+ " S603" , # `subprocess` call: check for execution of untrusted input
93
+ ]
80
94
lint.isort = { known-first-party = [
81
95
" sphinx_autodoc_typehints" ,
82
96
" tests" ,
@@ -86,29 +100,14 @@ lint.isort = { known-first-party = [
86
100
lint.ignore = [
87
101
" ANN101" , # no type annotation for self
88
102
" ANN401" , # allow Any as type annotation
103
+ " COM812" , # Conflict with formatter
104
+ " CPY" , # No copyright statements
89
105
" D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
90
106
" D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
91
- " S104" , # Possible binding to all interface
92
- " COM812" , # Conflict with formatter
93
107
" ISC001" , # Conflict with formatter
94
- " CPY " , # No copyright statements
108
+ " S104 " , # Possible binding to all interface
95
109
]
96
110
lint.preview = true
97
- format.preview = true
98
- format.docstring-code-format = true
99
- format.docstring-code-line-length = 100
100
- [tool .ruff .lint .per-file-ignores ]
101
- "tests/**/*.py" = [
102
- " S101" , # asserts allowed in tests...
103
- " FBT" , # don"t care about booleans as positional arguments in tests
104
- " INP001" , # no implicit namespace
105
- " D" , # don't care about documentation in tests
106
- " S603" , # `subprocess` call: check for execution of untrusted input
107
- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
108
- " PLR0913" , # any number of arguments in tests
109
- " PLR0917" , # any number of arguments in tests
110
- " PLC2701" , # private imports
111
- ]
112
111
113
112
[tool .codespell ]
114
113
builtin = " clear,usage,en-GB_to_en-US"
0 commit comments