forked from deployed/santa-unchained-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (81 loc) · 1.65 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
88
[project]
name = "santa_unchained"
version = "1.0.0"
dependencies = [
"Django",
"django-extensions",
"django-debug-toolbar",
"django-admin-display",
"psycopg2-binary",
"ipython",
"environs",
"requests",
"djangorestframework",
"django-filter",
"drf-spectacular",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-django",
"pytest-sugar",
"pytest-xdist",
"flake8",
"black",
"isort",
"factory_boy",
"pytest-factoryboy",
]
[tool.black]
max-line-length = 88
[tool.isort]
profile = "black"
[tool.coverage.report]
branch = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]
omit = [
"**/fixtures.py",
"manage.py",
"**/wsgi.py",
"**/settings/*.py",
"**/migrations/*.py",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "santa_unchained.settings.local"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
norecursedirs = ["deployment*",
".git/*",
".pytest_cache/*",
"migrations/*",
"santa_unchained/frontend/*"
]
addopts = "--nomigrations"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = flake8, black, isort
skipsdist = True
[gh-actions]
python =
3.10: py310
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 --format=default santa_unchained
[testenv:black]
deps = black
commands = black --check santa_unchained
[testenv:isort]
deps = isort
commands = isort --check santa_unchained
[testenv]
setenv = PYTHONPATH = {toxinidir}
deps = -r requirements/dev.txt
commands = pytest santa_unchained
"""
[tool.setuptools]
py-modules = ["santa_unchained"]