@@ -60,16 +60,31 @@ skip = [
6060]
6161
6262[tool .ruff ]
63- line-length = 120
6463target-version = " py38"
64+ line-length = 120
65+ format.preview = true
66+ format.docstring-code-line-length = 100
67+
68+ format.docstring-code-format = true
69+ lint.select = [
70+ " ALL" ,
71+ ]
72+ lint.per-file-ignores."tests/**/*.py" = [
73+ " D" , # don"t care about documentation in tests
74+ " FBT" , # don"t care about booleans as positional arguments in tests
75+ " INP001" , # no implicit namespace
76+ " PLC2701" , # private import
77+ " PLR0913" , # any number of arguments in tests
78+ " PLR0917" , # any number of arguments in tests
79+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
80+ " S101" , # asserts allowed in tests...
81+ " S603" , # `subprocess` call: check for execution of untrusted input
82+ ]
6583lint.isort = { known-first-party = [
6684 " pyproject_fmt_rust" ,
6785], required-imports = [
6886 " from __future__ import annotations" ,
6987] }
70- lint.select = [
71- " ALL" ,
72- ]
7388lint.ignore = [
7489 " ANN101" , # no type annotation for self
7590 " ANN401" , # allow Any as type annotation
@@ -81,22 +96,6 @@ lint.ignore = [
8196 " S104" , # Possible binding to all interface
8297]
8398lint.preview = true
84- format.preview = true
85- format.docstring-code-format = true
86- format.docstring-code-line-length = 100
87-
88- [tool .ruff .lint .per-file-ignores ]
89- "tests/**/*.py" = [
90- " D" , # don"t care about documentation in tests
91- " FBT" , # don"t care about booleans as positional arguments in tests
92- " INP001" , # no implicit namespace
93- " PLC2701" , # private import
94- " PLR0913" , # any number of arguments in tests
95- " PLR0917" , # any number of arguments in tests
96- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
97- " S101" , # asserts allowed in tests...
98- " S603" , # `subprocess` call: check for execution of untrusted input
99- ]
10099
101100[tool .codespell ]
102101builtin = " clear,usage,en-GB_to_en-US"
0 commit comments