-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
62 lines (56 loc) · 1.11 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
[tox]
skipsdist = true
args_are_paths = false
envlist =
black,
flake8,
isort,
pypi,
py{38,39}-{4.2},
py310-{4.2,5.0,5.1,main},
py311-{4.2,5.0,5.1,main},
py312-{4.2,5.0,5.1,main},
[gh-actions]
python =
3.8: py38, black, flake8, isort, pypi
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
usedevelop = true
commands =
{envpython} -R -Wonce {envbindir}/coverage run -a -m django test -v2 --settings=tests.settings {posargs}
coverage report
deps =
coverage
4.2: Django>=4.2,<5
5.0: Django>=5.0,<5.1
5.1: Django>=5.1,<5.2
main: https://github.com/django/django/archive/main.tar.gz
passenv =
GITHUB_*
[testenv:flake8]
usedevelop = false
commands = flake8
deps = flake8
[testenv:isort]
usedevelop = false
commands = isort --recursive --check-only --diff seal tests
deps =
isort
Django<4
[testenv:black]
usedevelop = false
commands = black --check seal tests
deps = black
[testenv:pypi]
usedevelop = false
commands =
python setup.py sdist --format=gztar bdist_wheel
twine check dist/*
deps =
pip
setuptools
twine
wheel