-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
43 lines (39 loc) · 919 Bytes
/
tox.ini
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
[tox]
envlist = tests, missing-migrations, isort, coverage, black
skipsdist = True
[testenv]
basepython = python3.9
deps =
poetry
commands =
poetry install
poetry run isort -c admissions
poetry run flake8 admissions
poetry run black --check admissions
[testenv:tests]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
LANG=C.UTF-8
passenv =
DATABASE
DATABASE_PORT
commands =
poetry install
poetry run coverage run --source=admissions {toxinidir}/manage.py test admissions
[testenv:coverage]
basepython = python3.9
commands =
poetry install
poetry run coverage report
poetry run coverage xml
[testenv:missing-migrations]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
LANG=C.UTF-8
passenv =
DATABASE
DATABASE_PORT
commands =
poetry install
poetry run python manage.py migrate
poetry run python manage.py makemigrations --check --dry-run