-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
60 lines (52 loc) · 1.12 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
[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 = "passit.settings.local"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
norecursedirs = ["deployment*",
".git/*",
".mypy_cache/*",
".pytest_cache/*",
"migrations/*",
"passit/frontend/*"
]
addopts = "--nomigrations"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, flake8, black, isort, mypy
skipsdist = True
[gh-actions]
python =
3.8: py38
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 --format=default passit
[testenv:black]
deps = black
commands = black --check passit
[testenv:isort]
deps = isort
commands = isort --check passit
[testenv:mypy]
deps = -r requirements/dev.txt
commands = mypy passit
[testenv]
setenv = PYTHONPATH = {toxinidir}
deps = -r requirements/dev.txt
commands = pytest passit
"""