forked from orcasgit/django-fernet-fields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (37 loc) · 1.1 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[tox]
skip_missing_interpreters = False
envlist =
py39-{docs,flake8},
py{38,39,310,311,312}-{django40,django41,django42}-{pg,sqlite},
py{310,311,312}-django{50,latest}-{pg,sqlite},
[testenv]
deps =
-crequirements.txt
cryptography
pytest-django
pytest
coverage
psycopg2-binary
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
djangolatest: Django>=5.0
setenv =
sqlite: DJANGO_SETTINGS_MODULE = fernet_fields.test.settings.sqlite
pg: DJANGO_SETTINGS_MODULE = fernet_fields.test.settings.pg
error_filters =
py{311,312}-django40: -Wdefault:"'cgi' is deprecated and slated for removal in Python 3.13":DeprecationWarning:django.http.request
commands =
coverage run -a runtests.py -Werror {[testenv]error_filters} fernet_fields/test --tb short
[testenv:py39-flake8]
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[testenv:py39-docs]
deps = Sphinx
changedir = {toxinidir}/doc
commands =
sphinx-build -aEWq -b html . _build/html
[flake8]
exclude = .tox,.git,__pycache__,doc/conf.py