-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (68 loc) · 1.31 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tool.pytest.ini_options]
addopts="--capture=tee-sys"
DJANGO_SETTINGS_MODULE = "config.settings.test"
norecursedirs = [".*", ".env", "storage_root"]
python_files = ["test_*.py", "*_tests.py"]
[tool.black]
line-length = 119
[tool.isort]
profile = "black"
known_third_party = ["docker"]
known_local_folder = [
"apps",
"account",
"core",
"job",
"package",
"project",
"run",
"variable",
"workspace"
]
[tool.bandit]
skips = ["B101"]
[tool.ruff]
target-version = "py311"
line-length = 119
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"UP", # pyupgrade
"DJ", # flake8-django
"N", # pep8-naming
"B", # flake8-bugbear
"C40", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"T20", # flake8-print
"RET", # flake8-return
"PTH", # flake8-use-pathlib
]
exclude = [
"tests/resources/*",
]
[tool.coverage.run]
branch = true
source = [
"apps/*",
]
omit = [
"*/migrations/*",
"*/tests/*",
"*.html",
"*.txt",
"*.sh",
]
plugins = [
"django_coverage_plugin",
]
[tool.coverage.report]
precision = 2
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]