@@ -105,47 +105,46 @@ build.targets.sdist.include = [
105
105
version.source = " vcs"
106
106
107
107
[tool .ruff ]
108
- line-length = 120
109
108
target-version = " py37"
109
+ line-length = 120
110
+ format.preview = true
111
+ format.docstring-code-line-length = 100
112
+ format.docstring-code-format = true
113
+ lint.select = [
114
+ " ALL" ,
115
+ ]
116
+ lint.per-file-ignores."tests/**/*.py" = [
117
+ " D" , # don't care about documentation in tests
118
+ " FBT" , # don"t care about booleans as positional arguments in tests
119
+ " INP001" , # no implicit namespace
120
+ " PLC2701" , # Private import
121
+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
122
+ " S101" , # asserts allowed in tests...
123
+ " S603" , # `subprocess` call: check for execution of untrusted input
124
+ ]
110
125
lint.isort = { known-first-party = [
111
126
" virtualenv" ,
112
127
], required-imports = [
113
128
" from __future__ import annotations" ,
114
129
] }
115
- lint.select = [
116
- " ALL" ,
117
- ]
118
130
lint.ignore = [
119
- " CPY" , # No copyright header
120
131
" ANN" , # no type checking added yet
132
+ " COM812" , # conflict with formatter
133
+ " CPY" , # No copyright header
121
134
" D10" , # no docstrings
122
135
" D40" , # no imperative mode for docstrings
123
- " PTH" , # no pathlib, <=39 has problems on Windows with absolute/resolve, can revisit once we no longer need 39
124
- " INP001" , # ignore implicit namespace packages
125
136
" D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
126
137
" D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
127
- " S104 " , # Possible binding to all interfaces
128
- " S404 " , # Using subprocess is alright
138
+ " INP001 " , # ignore implicit namespace packages
139
+ " ISC001 " , # conflict with formatter
129
140
" PLR0914" , # Too many local variables
130
141
" PLR0917" , # Too many positional arguments
131
142
" PLR6301" , # Method could be a function, class method, or static method
132
- " COM812" , # conflict with formatter
133
- " ISC001" , # conflict with formatter
143
+ " PTH" , # no pathlib, <=39 has problems on Windows with absolute/resolve, can revisit once we no longer need 39
144
+ " S104" , # Possible binding to all interfaces
145
+ " S404" , # Using subprocess is alright
134
146
]
135
147
lint.preview = true
136
- format.preview = true
137
- format.docstring-code-format = true
138
- format.docstring-code-line-length = 100
139
- [tool .ruff .lint .per-file-ignores ]
140
- "tests/**/*.py" = [
141
- " S101" , # asserts allowed in tests...
142
- " FBT" , # don"t care about booleans as positional arguments in tests
143
- " INP001" , # no implicit namespace
144
- " D" , # don't care about documentation in tests
145
- " S603" , # `subprocess` call: check for execution of untrusted input
146
- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
147
- " PLC2701" , # Private import
148
- ]
149
148
150
149
[tool .codespell ]
151
150
builtin = " clear,usage,en-GB_to_en-US"
0 commit comments