-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathruff.toml
More file actions
47 lines (40 loc) · 1.67 KB
/
Copy pathruff.toml
File metadata and controls
47 lines (40 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
target-version = "py312"
lint.logger-objects = ["aiovodafone.const._LOGGER"]
lint.select = ["ALL"]
lint.ignore = [
"ASYNC109", # Checks for async functions with a timeout argument
"COM812", # Trailing comma missing (conflicts with formatter)
"D203", # 1 blank line required before class docstring (conflicts with `no-blank-line-before-class` (D211))
"D213", # Multi-line docstring summary should start at the second line (conflicts with multi-line-summary-first-line` (D212))
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"FBT003", # Boolean positional value in function call
"N818", # Exception name should be named with an Error suffix
"PLR0912", # Too many branches
"TRY003", # Avoid specifying long messages outside the exception class
]
[lint.per-file-ignores]
"library_test.py" = [
"PLR0915", # Too many statements
"T201", # `print` found
]
"docs/script_grab.py" = [
"INP001", # Missing an __init__.py file
"T201", # `print` found
]
"tests/*" = [
"S101", # Use of `assert` detected
"S105", # Possible hardcoded password strings in tests
]
"setup.py" = [
"CPY001", # Missing copyright notice
]
[lint.mccabe]
max-complexity = 18
[lint.isort]
known-first-party = ["aiovodafone", "tests"]
[lint.flake8-copyright]
notice-rgx = '''(?i)# Copyright \d{4} Simone Chemelli and Contributors
# SPDX-License-Identifier: Apache-2.0'''