-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
56 lines (52 loc) · 1.42 KB
/
pyproject.toml
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
48
49
50
51
52
53
54
55
56
[tool.ruff]
fix = true
line-length = 120
fixable = ["ALL"]
ignore = [
"S101", # Use of `assert` detected
"B904", # Within an `except` clause, raise exceptions with `raise ... from err`
"FBT001", # Boolean positional arg in function definition
"FBT002", # Boolean default value in function definition
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"S113", # Probable use of requests call without timeout
"D211", # no-blank-line-before-class
"D213", # multi-line-summary-second-line`
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"D210", # No whitespaces allowed surrounding docstring text
"D401",
"D400", # First line should end with a period
"D415", # First line should end with a period, question mark, or exclamation point
"D205",
"E203",
"E266",
"E501",
"F403",
"F401",
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = [
"A",
"B",
"C",
"D",
"E",
"F",
"FBT",
"I",
"N",
"Q",
"RUF",
"S",
"T",
"UP",
"W",
"YTT",
]
[tool.pytest.ini_options]
log = "INFO"
log_cli = "True"