Test newer versions by tox and don't use all combinations
envlist =
docs_style
typing
- dj41-py310
+ dj41-py311
dj40-py310
dj20-py36
- dj21-py37
- dj22-py38
- dj31-py39
+ dj22-py37
+ dj30-py38
+ dj32-py39
# djdev-py311
no_django-py38
debug_toolbar-dj40-py38
@@ -46,8 +46,8 @@ deps =
dj41: Django~=4.1.0 # py38-310
djdev: https://github.com/django/django/archive/main.zip
# local copy of django/origin main
- # wget https://github.com/django/django/archive/main.zip -O django-40-dev.zip
- # djdevlocal: django-40-dev.zip
+ # wget https://github.com/django/django/archive/main.zip -O django-42-dev.zip
+ # djdevlocal: django-42-dev.zip
pylint: pylint~=2.8.0 # fixed version to not report too much
pylint: pylint-django<2.5
debug_toolbar: django-debug-toolbar
@@ -68,23 +68,25 @@ setenv =
QUIET_KNOWN_BUGS={env:QUIET_KNOWN_BUGS:on}
passenv = SLOW_TESTS
-# These other environments are tested by `tox -e ALL`:
-# (Especially useful is to add highest contra lowest Django combinations)
-[testenv:djdev-py310]
+# These other environments would be tested by `tox -e ALL`, but it is too much.
+[testenv:djdev-py311]
[testenv:clean]
basepython = python3
commands =
{envpython} manage.py test tests.clean_test_data
-[testenv:debug_toolbar-dj{20,32,40}-py{36,38,39}]
+[testenv:debug_toolbar-dj{20-py36,32-py39,41-py311}]
commands = {envpython} manage.py test tests.t_debug_toolbar --settings=tests.t_debug_toolbar.settings
-[testenv:pylint-dj{20,21,22,30,31,32,40,41}-py{36,38,39,310}]
+[testenv:pylint-dj{20-py37,22-py37,30-py39,32-py39,40-py310,41-py310}]
+# Python 3.11 will require "wrapt>=1.14.1" and therefore to allow a newer pylint
+# New pylint requires Python >= 3.7 and has a different configuration.
+# Therefore we don't test with Python 3.6 by pylint
setenv = DJANGO_SETTINGS_MODULE=salesforce.testrunner.settings
commands = pylint --reports=no salesforce
-[testenv:no_django-py{36,38,39}]
+[testenv:no_django-py{36,311}]
usedevelop=True
allowlist_externals = rm
commands =
@@ -101,7 +103,7 @@ deps =
rstcheck
commands =
flake8
- rstcheck README.rst CHANGELOG.rst
+ rstcheck --recursive README.rst CHANGELOG.rst docs
[testenv:typing]
# any python >= 3.5.3, < 3.9
