-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
42 lines (38 loc) · 1.19 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
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = ["tests"]
[tool.ruff]
line-length = 112
target-version = "py38"
select = [
"E", # style errors
"W", # style warnings
"F", # flakes
"I", # isort
"UP", # pyupgrade
# "S", # bandit
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
]
ignore = [
"D101",
"D102",
"D100", # Missing docstring in public module
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D401", # First line should be in imperative mood
"D413", # Missing blank line after last section
"D416", # Section name should end with a colon
# incompatibility with mypy
"RUF005", # collection-literal-concatenation, in prediction_utils.py:30
# version specific
"UP006", # Replace typing.List by list, mandatory for py3.8
"UP007", # Replace Union by |, mandatory for py3.9
"E402", # Imports not at top
]
show-fixes = true