|
1 | 1 | target-version = "py39" # Pin Ruff to Python 3.9 |
2 | 2 | line-length = 95 |
3 | | -required-version = "0.1.14" |
4 | | -show-source = true |
| 3 | +required-version = "0.2.0" |
| 4 | +output-format = "full" |
5 | 5 |
|
6 | 6 | [lint] |
7 | 7 | preview = true |
@@ -36,8 +36,6 @@ select = [ |
36 | 36 | "ANN001", # Missing type annotation for function argument `{name}` |
37 | 37 | "ANN002", # Missing type annotation for `*{name}` |
38 | 38 | "ANN003", # Missing type annotation for `**{name}` |
39 | | -# "ANN101", # Missing type annotation for `{name}` in method |
40 | | - "ANN102", # Missing type annotation for `{name}` in classmethod |
41 | 39 | "ANN201", # Missing return type annotation for public function `{name}` |
42 | 40 | "ANN202", # Missing return type annotation for private function `{name}` |
43 | 41 | # "ANN204", # Missing return type annotation for special method `{name}` |
@@ -101,7 +99,7 @@ select = [ |
101 | 99 | "D410", # Missing blank line after section ("{name}") |
102 | 100 | "D411", # Missing blank line before section ("{name}") |
103 | 101 | # "D412", # No blank lines allowed between a section header and its content ("{name}") |
104 | | - "D413", # Missing blank line after last section ("{name}") |
| 102 | +# "D413", # Missing blank line after last section ("{name}") |
105 | 103 | "D414", # Section has no content ("{name}") |
106 | 104 | # "D415", # First line should end with a period, question mark, or exclamation point |
107 | 105 | "D416", # Section name should end with a colon ("{name}") |
@@ -296,7 +294,6 @@ select = [ |
296 | 294 | "RUF008", # Do not use mutable default values for dataclass attributes |
297 | 295 | "RUF009", # Do not perform function call `{name}` in dataclass defaults |
298 | 296 | "RUF010", # Use explicit conversion flag |
299 | | - "RUF011", # Dictionary comprehension uses static key: `{key}` |
300 | 297 | # "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` |
301 | 298 | "RUF013", # PEP 484 prohibits implicit `Optional` |
302 | 299 | # "RUF015", # Prefer `next({iterable})` over single element slice |
@@ -325,7 +322,7 @@ select = [ |
325 | 322 | "S304", # Use of insecure cipher, replace with a known secure cipher such as AES |
326 | 323 | "S305", # Use of insecure cipher mode, replace with a known secure cipher such as AES |
327 | 324 | "S306", # Use of insecure and deprecated function (`mktemp`) |
328 | | -# "S307", # Use of possibly insecure function; consider using `ast.literal_eval` |
| 325 | + "S307", # Use of possibly insecure function; consider using `ast.literal_eval` |
329 | 326 | "S308", # Use of `mark_safe` may expose cross-site scripting vulnerabilities |
330 | 327 | "S310", # Audit URL open for permitted schemes. Allowing use of `file:` or custom schemes is often unexpected. |
331 | 328 | "S311", # Standard pseudo-random generators are not suitable for cryptographic purposes |
@@ -402,7 +399,7 @@ select = [ |
402 | 399 | "TCH003", # Move standard library import `{}` into a type-checking block |
403 | 400 | "TCH004", # Move import `{qualified_name}` out of type-checking block. Import is used for more than type hinting. |
404 | 401 | "TCH005", # Found empty type-checking block |
405 | | - "TCH006", # Invalid string member in `X | Y`-style union type |
| 402 | + "TCH010", # Invalid string member in `X | Y`-style union type |
406 | 403 | # flake8-todos ('TD') |
407 | 404 | # "TD001", # Invalid TODO tag: `{tag}` |
408 | 405 | # "TD003", # Missing issue link on the line following this TODO |
|
0 commit comments