-
Notifications
You must be signed in to change notification settings - Fork 50
/
pyproject.toml
56 lines (50 loc) · 1.11 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
43
44
45
46
47
48
49
50
51
52
53
54
55
[tool.mypy]
python_version = "3.8"
warn_return_any = false
warn_unused_configs = true
cache_dir = "/tmp"
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_defs = true
[tool.isort]
line_length = 120
multi_line_output = 0
[tool.ruff]
lint.ignore = ["ISC003", "PT011", "A003", "B010", "EM101", "EM102", "Q000", "SLF001", "PGH003", "PD901", "TRY002", "TRY003",
"PLR2004", "UP007", "B905", "PLR0913", "PLR0912"]
lint.extend-select = [
"A", "ARG",
"B",
"C4", "COM",
"DJ", "DTZ",
"EM", "EXE",
"FBT",
"G",
"ICN", "INP", "ISC",
"NPY",
"PD", "PGH", "PIE", "PLC", "PLE", "PLR", "PLW", "PT", "PTH", "PYI",
"Q",
"RUF", "RSE",
"S", "SIM", "SLF",
"TCH", "TID", "TRY",
"UP",
"W",
# "ERA",
]
line-length = 120
cache-dir = "/tmp"
exclude = [
"migrations",
"D_*.py",
"__init__.py",
]
target-version = "py38"
[tool.ruff.lint.per-file-ignores]
"*/collaborative_model/**/*.py" = ["PLR0912", "PLR0915", "PLW2901"]
"*/tests/*.py" = ["S1", "FBT", "PLR"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-rP"
testpaths = [
"src"
]