-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
executable file
·55 lines (51 loc) · 1.33 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
target-version = "py310"
line-length = 80
fix = true
show-fixes = true
exclude = [
".eggs/",
".git/",
".mypy_cache/",
".conda/",
".venv/",
".tox/",
".vscode/",
".pytest_cache/",
".test/",
"dist/",
]
[format]
preview = true
docstring-code-line-length = 100
docstring-code-format = true
[lint]
select = ["ALL"]
ignore = [
"ANN",
"A005", # Shadowing built-in name 'type'
"ANN003", # Missing type annotation for kwargs
"CPY", # No copyright header
"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 public nested class
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"N802", # Function name should be lowercase
"N803", # Argument name should be lowercase
"N806", # Variable in function should be lowercase
"TID252",
"EXE",
"COM812",
"ISC001",
]
preview = true
[lint.pylint]
max-args = 20
max-locals = 40
[lint.flake8-builtins]
builtins-allowed-modules = ["typing"]