@@ -105,47 +105,46 @@ build.targets.sdist.include = [
105105version.source = " vcs"
106106
107107[tool .ruff ]
108- line-length = 120
109108target-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+ ]
110125lint.isort = { known-first-party = [
111126 " virtualenv" ,
112127], required-imports = [
113128 " from __future__ import annotations" ,
114129] }
115- lint.select = [
116- " ALL" ,
117- ]
118130lint.ignore = [
119- " CPY" , # No copyright header
120131 " ANN" , # no type checking added yet
132+ " COM812" , # conflict with formatter
133+ " CPY" , # No copyright header
121134 " D10" , # no docstrings
122135 " 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
125136 " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
126137 " 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
129140 " PLR0914" , # Too many local variables
130141 " PLR0917" , # Too many positional arguments
131142 " 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
134146]
135147lint.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- ]
149148
150149[tool .codespell ]
151150builtin = " clear,usage,en-GB_to_en-US"
0 commit comments