-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
47 lines (43 loc) · 1.01 KB
/
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
45
46
47
[tox]
envlist =
py36-django32,
py37-django32,
py38-django32,
py39-django{32,42},
py310-django{32,42,50,51},
py311-django{32,42,50,51},
linter
security
docs
[testenv]
setenv =
PYTHONWARNINGS = module::DeprecationWarning
DJANGO_SETTINGS_MODULE = tests.test_settings
commands =
coverage erase
coverage run manage.py test
coverage report
coverage xml
deps =
django32: Django>=3.2,<3.3
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
-rrequirements/requirements-packaging.txt
-rrequirements/requirements-coverage.txt
[testenv:linter]
deps =
-rrequirements/requirements-linter.txt
commands =
flake8 --extend-exclude statusboard/migrations statusboard
black --check --extend-exclude statusboard/migrations statusboard
[testenv:security]
deps =
-rrequirements/requirements-security.txt
commands =
bandit -r statusboard
[testenv:docs]
deps =
-rdocs/requirements.txt
commands =
mkdocs build