@@ -68,39 +68,38 @@ version.source = "vcs"
6868line-length = 120
6969
7070[tool .ruff ]
71- line-length = 120
7271target-version = " py38"
72+ line-length = 120
73+ format.preview = true
74+ format.docstring-code-line-length = 100
75+ format.docstring-code-format = true
76+ lint.select = [
77+ " ALL" ,
78+ ]
79+ lint.per-file-ignores."tests/**/*.py" = [
80+ " D" , # don"t care about documentation in tests
81+ " FBT" , # don't care about booleans as positional arguments in tests
82+ " INP001" , # no implicit namespace
83+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
84+ " S101" , # asserts allowed in tests...
85+ " S603" , # `subprocess` call: check for execution of untrusted input
86+ ]
7387lint.isort = { known-first-party = [
7488 " devpi_process" ,
7589], required-imports = [
7690 " from __future__ import annotations" ,
7791] }
78- lint.select = [
79- " ALL" ,
80- ]
8192lint.ignore = [
8293 " ANN101" , # no type annotation for self
8394 " ANN401" , # allow Any as type annotation
95+ " COM812" , # Conflict with formatter
96+ " CPY" , # No copyright statements
8497 " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
8598 " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
86- " S104" , # Possible binding to all interface
87- " COM812" , # Conflict with formatter
8899 " ISC001" , # Conflict with formatter
89- " CPY " , # No copyright statements
100+ " S104 " , # Possible binding to all interface
90101]
91102lint.preview = true
92- format.preview = true
93- format.docstring-code-format = true
94- format.docstring-code-line-length = 100
95- [tool .ruff .lint .per-file-ignores ]
96- "tests/**/*.py" = [
97- " S101" , # asserts allowed in tests...
98- " FBT" , # don't care about booleans as positional arguments in tests
99- " INP001" , # no implicit namespace
100- " D" , # don"t care about documentation in tests
101- " S603" , # `subprocess` call: check for execution of untrusted input
102- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
103- ]
104103
105104[tool .codespell ]
106105builtin = " clear,usage,en-GB_to_en-US"
0 commit comments