@@ -111,46 +111,45 @@ build.targets.sdist.include = [
111
111
version.source = " vcs"
112
112
113
113
[tool .ruff ]
114
- line-length = 120
115
114
target-version = " py38"
115
+ line-length = 120
116
+ format.preview = true
117
+ format.docstring-code-line-length = 100
118
+ format.docstring-code-format = true
119
+ lint.select = [
120
+ " ALL" ,
121
+ ]
122
+ lint.per-file-ignores."tests/**/*.py" = [
123
+ " D" , # don't care about documentation in tests
124
+ " FBT" , # don"t care about booleans as positional arguments in tests
125
+ " INP001" , # no implicit namespace
126
+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
127
+ " S101" , # asserts allowed in tests...
128
+ " S603" , # `subprocess` call: check for execution of untrusted input
129
+ ]
116
130
lint.isort = { known-first-party = [
117
131
" tox" ,
118
132
" tests" ,
119
133
], required-imports = [
120
134
" from __future__ import annotations" ,
121
135
] }
122
- lint.select = [
123
- " ALL" ,
124
- ]
125
136
lint.ignore = [
126
- " CPY" , # No copyright header
127
- " INP001" , # no implicit namespaces here
128
- " D" , # ignore documentation for now
129
- " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed in `arg`"
130
137
" ANN101" , # Missing type annotation for `self` in method
131
138
" ANN102" , # Missing type annotation for `cls` in classmethod"
139
+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed in `arg`"
140
+ " COM812" , # conflicts with formatter
141
+ " CPY" , # No copyright header
142
+ " D" , # ignore documentation for now
132
143
" D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
133
144
" D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
134
- " S104" , # Possible binding to all interfaces
135
- " COM812" , # conflicts with formatter
145
+ " INP001" , # no implicit namespaces here
136
146
" ISC001" , # conflicts with formatter
137
- " S404" , # Using subprocess is alright.
138
147
" PLR0914" , # # Too many local variables
139
148
" PLR0917" , # # Too many positional arguments
149
+ " S104" , # Possible binding to all interfaces
150
+ " S404" , # Using subprocess is alright.
140
151
]
141
- format.preview = true
142
152
lint.preview = true
143
- format.docstring-code-format = true
144
- format.docstring-code-line-length = 100
145
- [tool .ruff .lint .per-file-ignores ]
146
- "tests/**/*.py" = [
147
- " S101" , # asserts allowed in tests...
148
- " FBT" , # don"t care about booleans as positional arguments in tests
149
- " INP001" , # no implicit namespace
150
- " D" , # don't care about documentation in tests
151
- " S603" , # `subprocess` call: check for execution of untrusted input
152
- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
153
- ]
154
153
155
154
[tool .codespell ]
156
155
builtin = " clear,usage,en-GB_to_en-US"
0 commit comments