Skip to content

Commit 6a50dc8

Browse files
authored
split tox config (#451)
1 parent a5b9385 commit 6a50dc8

File tree

2 files changed

+40
-43
lines changed

2 files changed

+40
-43
lines changed

pyproject.toml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,3 @@ target-version = "py38"
1212
[tool.ruff.lint]
1313
select = ["B", "C4", "E", "F", "I", "T10", "YTT", "W"]
1414

15-
[tool.tox]
16-
legacy_tox_ini = """
17-
[tox]
18-
min_version = 4.4
19-
envlist =
20-
{py38,py39,py310,py311,py312}-django420-{end2end,unittests}
21-
{py310,py311,py312}-django{500,510}-{end2end,unittests}
22-
py39-lint
23-
24-
[gh-actions]
25-
python =
26-
3.8: py38
27-
3.9: py39, py39-lint
28-
3.10: py310
29-
3.11: py311
30-
3.12: py312
31-
32-
[testenv]
33-
deps =
34-
django420: Django>=4.2,<4.3
35-
django500: Django>=5.0,<5.1
36-
django510: Django>=5.1,<5.2
37-
coverage
38-
-rrequirements.txt
39-
skip_missing_interpreters=true
40-
41-
changedir =
42-
end2end: {toxinidir}/django_prometheus/tests/end2end
43-
setenv =
44-
end2end: PYTHONPATH = {toxinidir}
45-
end2end: DJANGO_SETTINGS_MODULE=testapp.settings
46-
commands =
47-
end2end: coverage run --source=django_prometheus -m pytest testapp/
48-
unittests: coverage run --source=django_prometheus setup.py test
49-
unittests: python setup.py sdist bdist_wheel
50-
51-
[testenv:py39-lint]
52-
deps =
53-
ruff==0.8.2
54-
commands =
55-
ruff format --check django_prometheus/
56-
ruff check django_prometheus/
57-
"""

tox.ini

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[tox]
2+
min_version = 4.4
3+
envlist =
4+
{py38,py39,py310,py311,py312}-django420-{end2end,unittests}
5+
{py310,py311,py312}-django{500,510}-{end2end,unittests}
6+
py39-lint
7+
8+
[gh-actions]
9+
python =
10+
3.8: py38
11+
3.9: py39, py39-lint
12+
3.10: py310
13+
3.11: py311
14+
3.12: py312
15+
16+
[testenv]
17+
deps =
18+
django420: Django>=4.2,<4.3
19+
django500: Django>=5.0,<5.1
20+
django510: Django>=5.1,<5.2
21+
coverage
22+
-rrequirements.txt
23+
skip_missing_interpreters=true
24+
25+
changedir =
26+
end2end: {toxinidir}/django_prometheus/tests/end2end
27+
setenv =
28+
end2end: PYTHONPATH = {toxinidir}
29+
end2end: DJANGO_SETTINGS_MODULE=testapp.settings
30+
commands =
31+
end2end: coverage run --source=django_prometheus -m pytest testapp/
32+
unittests: coverage run --source=django_prometheus setup.py test
33+
unittests: python setup.py sdist bdist_wheel
34+
35+
[testenv:py39-lint]
36+
deps =
37+
ruff==0.8.2
38+
commands =
39+
ruff format --check django_prometheus/
40+
ruff check django_prometheus/

0 commit comments

Comments
 (0)