-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
32 lines (31 loc) · 1.38 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
line-length = 120
target-version = "py312"
select = ["ALL"]
ignore = [
#### modules
"ANN", # flake8-annotations
#### specific rules
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D106", # missing docstring in nested class
"D107", # missing docstring in __init__
"D200", # docstring too long
"D205", # docstring not fully split across lines
"D212", # Multi-line docstring summary should start at the first line
"D400", # First line should be in imperative mood
"D401", # First line should be in imperative mood
"D415", # First line should end with a period
"TRY003", # Avoid specifying long messages outside the exception class
"TD002", # Missing return type annotation for public function
"TD003", # Missing return type annotation for public method
"FIX002", # docstring should start with a summary,
"EM101", # Exception must not use a string literal,
"FBT001", # boolean default value in function signature
"PLR0913", # Too many arguments
"FBT002", # boolean positional only argument,
"PLR2004", # Magic value used in comparison,
]