-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
44 lines (38 loc) · 985 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
44
[tox]
envlist = py{38}-d{22}
envtmpdir={toxinidir}/build/{envname}/tmp
envlogdir={toxinidir}/build/{envname}/log
[testenv]
basepython=python3.8
passenv =
PYTHONDONTWRITEBYTECODE
USER
HOST
DATABASE_URL
PIPENV_VERBOSITY
SECRET_KEY
DJANGO_SETTINGS_MODULE
setenv =
PYTHONDONTWRITEBYTECODE=true
PYTHONPATH={toxinidir}/src
extras =
test
deps =
d22: django==2.2.*
d30: django==3.0.*
whitelist_externals =
pipenv
/bin/mkdir
commands =
mkdir -p {toxinidir}/~build/flake {toxinidir}/build/results
pipenv install -d --deploy --ignore-pipfile
; python -W ignore manage.py check
; python -W ignore manage.py makemigrations --dry-run --check
flake8 src/ --format=html --htmldir=~build/flake
isort -rc src/ --check-only
coverage run manage.py test website.apps.aggregator
[testenv:report]
commands =
pip install coverage
coverage report -m --fail-under 80
coverage html