@@ -55,6 +55,28 @@ version.source = "vcs"
55
55
[tool .black ]
56
56
line-length = 120
57
57
58
+ [tool .ruff ]
59
+ select = [" ALL" ]
60
+ line-length = 120
61
+ target-version = " py37"
62
+ isort = {known-first-party = [" pytest_env" ], required-imports = [" from __future__ import annotations" ]}
63
+ ignore = [
64
+ " ANN101" , # no typoe annotation for self
65
+ " ANN401" , # allow Any as type annotation
66
+ " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
67
+ " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
68
+ " S104" , # Possible binding to all interface
69
+ ]
70
+ [tool .ruff .per-file-ignores ]
71
+ "tests/**/*.py" = [
72
+ " S101" , # asserts allowed in tests...
73
+ " FBT" , # don"t care about booleans as positional arguments in tests
74
+ " INP001" , # no implicit namespace
75
+ " D" , # don"t care about documentation in tests
76
+ " S603" , # `subprocess` call: check for execution of untrusted input
77
+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
78
+ ]
79
+
58
80
[tool .isort ]
59
81
profile = " black"
60
82
known_first_party = [" pytest_env" ]
@@ -81,25 +103,3 @@ paths.source = [
81
103
python_version = " 3.10"
82
104
show_error_codes = true
83
105
strict = true
84
-
85
- [tool .ruff ]
86
- select = [" ALL" ]
87
- line-length = 120
88
- target-version = " py37"
89
- isort = {known-first-party = [" pytest_env" ], required-imports = [" from __future__ import annotations" ]}
90
- ignore = [
91
- " ANN101" , # no typoe annotation for self
92
- " ANN401" , # allow Any as type annotation
93
- " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
94
- " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
95
- " S104" , # Possible binding to all interface
96
- ]
97
- [tool .ruff .per-file-ignores ]
98
- "tests/**/*.py" = [
99
- " S101" , # asserts allowed in tests...
100
- " FBT" , # don"t care about booleans as positional arguments in tests
101
- " INP001" , # no implicit namespace
102
- " D" , # don"t care about documentation in tests
103
- " S603" , # `subprocess` call: check for execution of untrusted input
104
- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
105
- ]
0 commit comments