-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathtox.ini
68 lines (60 loc) · 1.4 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
skipsdist=True
envlist=lint,py{37,39}-dj{22,32},py39-dj40,py39-dj41,py39-dj42,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=
py37: python3.7
py39: python3.9
deps=
dj22: Django>=2.2,<2.3
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<4.3
[testenv:lint]
basepython=python3.11
deps=
black
flake8
isort
commands=
black --check flags setup.py
flake8 flags setup.py
isort --check-only --diff flags
[testenv:coverage]
basepython=python3.9
deps=
coverage
diff_cover
commands=
coverage combine
coverage xml
diff-cover coverage.xml --compare-branch=origin/main --fail-under=100
[testenv:docs]
basepython=python3.7
deps=
-e .[docs]
commands=
mkdocs build
[flake8]
ignore=E731,W503,W504
exclude=
.tox,
__pycache__,
flags/migrations/*
flags/tests/testapp/migrations/*
[isort]
combine_as_imports=1
lines_after_imports=2
include_trailing_comma=1
multi_line_output=3
skip=.tox,migrations
use_parentheses=1
known_django=django
default_section=THIRDPARTY
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER