| 1 |
target-version = "py312" |
| 2 |
|
| 3 |
lint.logger-objects = ["aiocomelit.const._LOGGER"] |
| 4 |
|
| 5 |
lint.select = ["ALL"] |
| 6 |
|
| 7 |
lint.ignore = [ |
| 8 |
"COM812", # Trailing comma missing (conflicts with formatter) |
| 9 |
"D203", # 1 blank line required before class docstring (conflicts with `no-blank-line-before-class` (D211)) |
| 10 |
"D213", # Multi-line docstring summary should start at the second line (conflicts with multi-line-summary-first-line` (D212)) |
| 11 |
"EM101", # Exception must not use a string literal, assign to variable first |
| 12 |
"EM102", # Exception must not use an f-string literal, assign to variable first |
| 13 |
"FBT001", # Boolean-typed positional argument in function definition |
| 14 |
"FBT002", # Boolean default positional argument in function definition |
| 15 |
"FBT003", # Boolean positional value in function call |
| 16 |
"N818", # Exception name should be named with an Error suffix |
| 17 |
"PLR0912", # Too many branches |
| 18 |
"TRY003", # Avoid specifying long messages outside the exception class |
| 19 |
] |
| 20 |
|
| 21 |
[lint.per-file-ignores] |
| 22 |
"library_test.py" = [ |
| 23 |
"PLR0915", # Too many statements |
| 24 |
"T201", # `print` found |
| 25 |
] |
| 26 |
"tests/*" = [ |
| 27 |
"PLR0913", # Too many arguments |
| 28 |
"PLR0917", # Too many positional arguments |
| 29 |
"PLR2004", # Magic value used in comparison |
| 30 |
"S101", # Use of `assert` detected |
| 31 |
] |
| 32 |
"setup.py" = [ |
| 33 |
"CPY001", # Missing copyright notice |
| 34 |
] |
| 35 |
|
| 36 |
[lint.mccabe] |
| 37 |
max-complexity = 18 |
| 38 |
|
| 39 |
[lint.isort] |
| 40 |
known-first-party = ["aiocomelit", "tests"] |
| 41 |
|
| 42 |
[lint.flake8-copyright] |
| 43 |
notice-rgx = '''(?i)# Copyright \d{4} Simone Chemelli and Contributors |
| 44 |
# SPDX-License-Identifier: Apache-2.0''' |