-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
63 lines (57 loc) · 1.52 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
target-version = "py312"
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 = [
"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 = 10
[lint.per-file-ignores]
"tests/**/*.py" = [
"INP001", # No implicit namespace package
"PLR0913", # Too many arguments.
"PLR0917", # Too many positional arguments.
"S101", # Use of assert detected
]
[lint.isort]
known-first-party = ["fipe", "tests"]
[lint.flake8-builtins]
builtins-allowed-modules = ["typing"]