Skip to content

Commit

Permalink
Simplifiy tox.ini
Browse files Browse the repository at this point in the history
For #89
  • Loading branch information
philgyford committed Jan 17, 2025
1 parent 8be1551 commit 7800785
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,21 @@ DJANGO =
5.1: django51
main: djangomain

; Dependencies and ENV things we need for all environments:
[base]
; Load dependencies from setup.py's extras_require["test"]:
extras = test
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}

[testenv]
dependency_groups =
dev
deps =
django42: Django >= 4.2, < 4.3
django51: Django >= 5.1, < 5.2
djangomain: https://github.com/django/django/archive/master.tar.gz
extras =
{[base]extras}
setenv =
{[base]setenv}
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}
commands =
; posargs will be replaced with anything after the -- when calling tox, eg;
; tox -- tests.ditto.tests.test_views.DittoViewTests.test_home_templates
; would run that single test (in all environments)
coverage run --branch {envbindir}/django-admin test {posargs:}
coverage run {envbindir}/django-admin test {posargs:}
coverage report -m

[testenv:ruff]
Expand Down

0 comments on commit 7800785

Please sign in to comment.