@@ -72,41 +72,40 @@ build.targets.sdist.include = [
7272version.source = " vcs"
7373
7474[tool .ruff ]
75- line-length = 120
7675target-version = " py38"
76+ line-length = 120
77+ format.preview = true
78+ format.docstring-code-line-length = 100
79+ format.docstring-code-format = true
80+ lint.select = [
81+ " ALL" ,
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+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
88+ " S101" , # asserts allowed in tests...
89+ " S603" , # `subprocess` call: check for execution of untrusted input
90+ ]
7791lint.isort = { known-first-party = [
7892 " filelock" ,
7993], required-imports = [
8094 " from __future__ import annotations" ,
8195] }
82- lint.select = [
83- " ALL" ,
84- ]
8596lint.ignore = [
8697 " ANN101" , # Missing type annotation for `self` in method
87- " D301" , # Use `r"""` if any backslashes in a docstring
88- " D205" , # 1 blank line required between summary line and description
89- " D401" , # First line of docstring should be in imperative mood
98+ " COM812" , # Conflict with formatter
99+ " CPY" , # No copyright statements
90100 " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
101+ " D205" , # 1 blank line required between summary line and description
91102 " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
92- " S104 " , # Possible binding to all interface
93- " COM812 " , # Conflict with formatter
103+ " D301 " , # Use `r"""` if any backslashes in a docstring
104+ " D401 " , # First line of docstring should be in imperative mood
94105 " ISC001" , # Conflict with formatter
95- " CPY " , # No copyright statements
106+ " S104 " , # Possible binding to all interface
96107]
97108lint.preview = true
98- format.preview = true
99- format.docstring-code-format = true
100- format.docstring-code-line-length = 100
101- [tool .ruff .lint .per-file-ignores ]
102- "tests/**/*.py" = [
103- " S101" , # asserts allowed in tests...
104- " FBT" , # don"t care about booleans as positional arguments in tests
105- " INP001" , # no implicit namespace
106- " D" , # don"t care about documentation in tests
107- " S603" , # `subprocess` call: check for execution of untrusted input
108- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
109- ]
110109
111110[tool .codespell ]
112111builtin = " clear,usage,en-GB_to_en-US"
0 commit comments