|
1 | | -target-version = "py39" |
| 1 | +target-version = "py310" |
2 | 2 | line-length = 120 |
| 3 | +output-format = "concise" |
3 | 4 |
|
4 | 5 | [lint] |
5 | 6 | exclude = [ |
6 | 7 | "tests/fixtures/*.py", |
7 | 8 | ] |
8 | | -select = [ |
9 | | - "A", "ANN", "ARG", |
10 | | - "B", "BLE", |
11 | | - "C", "C4", |
12 | | - "COM", |
13 | | - "D", "DTZ", |
14 | | - "E", "ERA", "EXE", |
15 | | - "F", "FBT", |
16 | | - "G", |
17 | | - "I", "ICN", "INP", "ISC", |
18 | | - "N", |
19 | | - "PGH", "PIE", "PL", "PLC", "PLE", "PLR", "PLW", "PT", "PYI", |
20 | | - "Q", |
21 | | - "RUF", "RSE", "RET", |
22 | | - "S", "SIM", "SLF", |
23 | | - "T", "T10", "T20", "TCH", "TID", "TRY", |
24 | | - "UP", |
25 | | - "W", |
26 | | - "YTT", |
27 | | -] |
| 9 | +select = ["ALL"] |
28 | 10 | ignore = [ |
29 | 11 | "A001", # Variable is shadowing a Python builtin |
30 | | - "ANN101", # Missing type annotation for self |
31 | | - "ANN102", # Missing type annotation for cls |
32 | 12 | "ANN204", # Missing return type annotation for special method __str__ |
33 | 13 | "ANN401", # Dynamically typed expressions (typing.Any) are disallowed |
34 | 14 | "ARG005", # Unused lambda argument |
35 | 15 | "C901", # Too complex |
36 | 16 | "D105", # Missing docstring in magic method |
37 | 17 | "D417", # Missing argument description in the docstring |
38 | 18 | "E501", # Line too long |
| 19 | + "EM101", # String literal when raising exception |
| 20 | + "EM102", # f-string when raising exception |
39 | 21 | "ERA001", # Commented out code |
| 22 | + "FIX", # TODO, FIXME, etc. |
40 | 23 | "G004", # Logging statement uses f-string |
41 | 24 | "PLR0911", # Too many return statements |
42 | 25 | "PLR0912", # Too many branches |
43 | 26 | "PLR0913", # Too many arguments to function call |
44 | 27 | "PLR0915", # Too many statements |
45 | 28 | "SLF001", # Private member accessed |
| 29 | + "TD002", # Missing author in TODO |
| 30 | + "TD003", # Missing issue link for TODO |
46 | 31 | "TRY003", # Avoid specifying long messages outside the exception class |
47 | 32 | ] |
48 | 33 |
|
|
0 commit comments