-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5b9385
commit 6a50dc8
Showing
2 changed files
with
40 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[tox] | ||
min_version = 4.4 | ||
envlist = | ||
{py38,py39,py310,py311,py312}-django420-{end2end,unittests} | ||
{py310,py311,py312}-django{500,510}-{end2end,unittests} | ||
py39-lint | ||
|
||
[gh-actions] | ||
python = | ||
3.8: py38 | ||
3.9: py39, py39-lint | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
|
||
[testenv] | ||
deps = | ||
django420: Django>=4.2,<4.3 | ||
django500: Django>=5.0,<5.1 | ||
django510: Django>=5.1,<5.2 | ||
coverage | ||
-rrequirements.txt | ||
skip_missing_interpreters=true | ||
|
||
changedir = | ||
end2end: {toxinidir}/django_prometheus/tests/end2end | ||
setenv = | ||
end2end: PYTHONPATH = {toxinidir} | ||
end2end: DJANGO_SETTINGS_MODULE=testapp.settings | ||
commands = | ||
end2end: coverage run --source=django_prometheus -m pytest testapp/ | ||
unittests: coverage run --source=django_prometheus setup.py test | ||
unittests: python setup.py sdist bdist_wheel | ||
|
||
[testenv:py39-lint] | ||
deps = | ||
ruff==0.8.2 | ||
commands = | ||
ruff format --check django_prometheus/ | ||
ruff check django_prometheus/ |