-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
75 lines (71 loc) · 2.31 KB
/
ruff.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
line-length = 120
indent-width = 4
exclude = [
".git",
".ruff_cache",
".tox",
".venv*",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"tryouts*.py",
]
[lint]
select = [
"ALL",
]
ignore = [
"UP031", # percent
"G002", # percent
"UP004", # class inherits from object
"TRY002", # own exception
"D212", # Multi-line docstring summary should start at the first line
"ANN201", # Missing return type annotation
"ANN202", # Missing return type annotation
"ANN001", # Missing type annotation
"ANN002", # Missing type annotation
"ANN003", # Missing type annotation
"ANN204", # Missing type annotation
"C408", # Unnecessary `dict` call (rewrite as a literal)
"D415", # First line should end with a period
"D400", # First line should end with a period
"D205", # 1 blank line required between summary line and description
"ANN101", # Missing type annotation for `self` in method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"D203", # no-blank-line-before-class (incompatible with formatter)
"D212", # multi-line-summary-first-line (incompatible with formatter)
"FIX002", # Line contains TODO, consider resolving an issue
"TD003", # Missing issue link on the line following this TODO
"D103", # docstring
"D101", # docstring
"D102", # docstring
"D105", # docstring
"D100", # docstring
"D107", # docstring
"ANN205", # docstring
"ANN206", # docstring
"S101", # assert usage
"I001", # assert usage
"G004", # Logging statement uses f-string
"RET503", # Missing explicit `return` at the end of function able to return non-`None` value
"PLR0911", # Too many returns
"TD002", # Missing author in TODO
"FBT002", # Boolean default positional argument in function definition
"S104", # Possible binding to all interfaces
"PIE790", # Unnesessary `pass` statement
"RET504", # Unnessary assign before `return` statement
]
[lint.per-file-ignores]
"__init__.py" = ["F401", "D104"]
"tests/*.py" = ["S101", "D103", "ANN201", "D100"]
[lint.flake8-quotes]
docstring-quotes = "double"
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"