@@ -72,41 +72,40 @@ build.targets.sdist.include = [
72
72
version.source = " vcs"
73
73
74
74
[tool .ruff ]
75
- line-length = 120
76
75
target-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
+ ]
77
91
lint.isort = { known-first-party = [
78
92
" filelock" ,
79
93
], required-imports = [
80
94
" from __future__ import annotations" ,
81
95
] }
82
- lint.select = [
83
- " ALL" ,
84
- ]
85
96
lint.ignore = [
86
97
" 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
90
100
" 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
91
102
" 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
94
105
" ISC001" , # Conflict with formatter
95
- " CPY " , # No copyright statements
106
+ " S104 " , # Possible binding to all interface
96
107
]
97
108
lint.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
- ]
110
109
111
110
[tool .codespell ]
112
111
builtin = " clear,usage,en-GB_to_en-US"
0 commit comments