forked from EmilStenstrom/django-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (58 loc) · 1.24 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
# This library strives to support all officially supported combinations of Python and Django:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
# https://devguide.python.org/versions/#versions
[tox]
envlist =
py38-django{42}
py39-django{42}
py310-django{42,50}
py311-django{42,50}
py312-django{42,50}
flake8
isort
coverage
mypy
[gh-actions]
python =
3.8: py38-django{42}
3.9: py39-django{42}
3.10: py310-django{42,50}
3.11: py311-django{42,50}
3.12: py312-django{42,50}, flake8, isort, coverage, mypy
fail_on_no_env = True
isolated_build = true
[testenv]
package = wheel
wheel_build_env = .pkg
deps =
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
pytest
pytest-xdist
flake8
isort
allowlist_externals = py.test
commands = py.test {posargs}
[testenv:flake8]
changedir = {toxinidir}
deps =
flake8
flake8-pyproject
commands =
flake8 .
[testenv:isort]
changedir = {toxinidir}
deps = isort
commands =
isort --check-only --diff src/django_components
[testenv:coverage]
changedir = {toxinidir}
deps = pytest-coverage
commands =
coverage run --branch -m pytest
coverage report -m --fail-under=93
[testenv:mypy]
changedir = {toxinidir}
deps = mypy
commands =
mypy .