forked from EmilStenstrom/django-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (44 loc) · 1.08 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
# This library strives to support the same versions of django and python that django supports:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
[tox]
envlist =
py36-django{32}
py37-django{32}
py38-django{32,40,41,42}
py39-django{32,40,41,42}
py310-django{32,40,41,42}
py311-django{41,42}
flake8
isort
[gh-actions]
python =
3.6: py36-django{32}
3.7: py37-django{32}
3.8: py38-django{32,40,41,42}
3.9: py39-django{32,40,41,42}
3.10: py310-django{32,40,41,42}
3.11: py311-django{41,42}, flake8, isort
fail_on_no_env = True
[testenv]
deps =
pytest
pytest-xdist
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
flake8
isort
commands = py.test {posargs}
[testenv:flake8]
# Note: Settings for flake8 exists in the setup.cfg file
changedir = {toxinidir}
deps = flake8
commands =
flake8 .
[testenv:isort]
# Note: Settings for isort exists in the setup.cfg file
changedir = {toxinidir}
deps = isort
commands =
isort --check-only --diff django_components