Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tox config #599

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example_project/django_mptt_example/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def code_or_name(self):
@property
def html_code_and_name(self):
if self.code:
return format_html(f"<strong>{self.code}</strong> {self.name}")
return format_html("<strong>{}</strong> {}", self.code, self.name)
else:
return format_html(f"<strong>{self.name}</strong>")
return format_html("<strong>{}</strong>", self.name)
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[tox]
envlist = py311-django32,py311-django40,py311-django41,py311-django42
envlist = py310-django42,py312-django42,py310-django50,py312-django50,py310-django51,py313-django51

[testenv]
changedir = {toxinidir}/example_project
setenv =
PYTHONWARNINGS = default
deps =
-r{toxinidir}/example_project/requirements_test.txt
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django==4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
commands =
python -Wd manage.py test django_mptt_example
basepython =
py311: python3.11
py310: python3.10
py312: python3.12
py313: python3.13
Loading