@@ -72,11 +72,25 @@ version.source = "vcs"
7272line-length = 120
7373
7474[tool .ruff ]
75- line-length = 120
7675target-version = " py39"
76+ line-length = 120
77+ format.preview = true
78+ format.docstring-code-line-length = 100
79+ format.docstring-code-format = true
7780lint.select = [
7881 " ALL" ,
7982]
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+ ]
8094lint.isort = { known-first-party = [
8195 " sphinx_autodoc_typehints" ,
8296 " tests" ,
@@ -86,29 +100,14 @@ lint.isort = { known-first-party = [
86100lint.ignore = [
87101 " ANN101" , # no type annotation for self
88102 " ANN401" , # allow Any as type annotation
103+ " COM812" , # Conflict with formatter
104+ " CPY" , # No copyright statements
89105 " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
90106 " 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
93107 " ISC001" , # Conflict with formatter
94- " CPY " , # No copyright statements
108+ " S104 " , # Possible binding to all interface
95109]
96110lint.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- ]
112111
113112[tool .codespell ]
114113builtin = " clear,usage,en-GB_to_en-US"
0 commit comments