forked from cfpb/django-flags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (43 loc) · 994 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
45
46
47
48
49
[tox]
skipsdist=True
envlist=
lint,
python3.8-django4.2
python3.12-django{4.2,5.0}
coverage
[testenv]
install_command=pip install -e ".[testing]" -U {opts} {packages}
commands=
python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run --parallel-mode --source='flags' {envbindir}/django-admin test {posargs}
setenv=
DJANGO_SETTINGS_MODULE=flags.tests.settings
basepython=
python3.8: python3.8
python3.12: python3.12
deps=
django4.2: Django>=4.2,<4.3
django5.0: Django>=5.0,<5.1
[testenv:lint]
basepython=python3.12
deps=
ruff
bandit
commands=
ruff format --check
ruff check flags
bandit -c "pyproject.toml" -r flags
[testenv:coverage]
basepython=python3.12
deps=
coverage
diff_cover
commands=
coverage combine
coverage xml
diff-cover coverage.xml --compare-branch=origin/main --fail-under=100
[testenv:docs]
basepython=python3.12
deps=
-e .[docs]
commands=
mkdocs build