-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
87 lines (73 loc) · 2.1 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
75
76
77
78
79
80
81
82
83
84
85
86
87
[tool.black]
line-length = 79
target-version = ["py39"]
[tool.coverage.html]
directory = "coverage"
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma"
"pragma: no branch",
"pragma: no cover",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain about abstract methods, they aren't run:
'@(abc\.)?abstractmethod'
]
show_missing = true
[tool.coverage.run]
branch = true
omit = [
"**/htmlcov/**",
".tox/*",
"apps/**/factories/*",
"apps/**/factories.py",
"apps/**/migrations/*",
"apps/**/test*.py",
"apps/**/tests/*",
"assets/*",
"config/*",
"docs/*,",
"scripts/*",
]
plugins = ["django_coverage_plugin"]
source = ["apps"]
[tool.isort]
extend_skip = "docs"
extend_skip_glob = ["*/migrations/*", "*/static/CACHE/*"]
line_length = 79
multi_line_output = 3
profile = "black"
[tool.pyright]
enableTypeIgnoreComments = true
ignore = [
"**/__pycache__/*",
"apps/**/migrations/*",
"config/*",
"node_modules/*",
"staticfiles/*"
]
include = ["apps/"]
pythonVersion = "3.9"
reportConstantRedefinition = "error"
reportDuplicateImport = "error"
reportPrivateUsage = "error"
reportUnusedClass = "warning"
reportUnusedFunction = "warning"
reportUnusedImport = "error"
reportUnusedVariable = "warning"
reportWildcardImportFromLibrary = "warning"
strictDictionaryInference = true
strictListInference = true
strictParameterNoneValue = true
strictSetInference = true
typeCheckingMode = "basic"
[tool.pytest.ini_options]
addopts = "--ds=config.settings.test --cov-fail-under=100 --cov --cov-config=pyproject.toml --cov-report=html --cov-report=term-missing -n auto --junitxml='junitxml_report/report.xml' -v --durations=10 --cache-clear --create-db"
console_output_style = "progress"
log_cli = 1
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_level = "ERROR"
norecursedirs = "node_modules venv build env bin .cache .tox"
python_files = ["*test.py", "test_*.py"]