forked from orcasgit/django-fernet-fields
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
46 lines (41 loc) · 993 Bytes
/
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
[tox]
envlist =
py{38,39,310}-django{32}-{pg,sqlite}
py{38,39,310,311,312}-django{41,42}-{pg,sqlite}
py{39,310,311,312}-django5-{pg,sqlite}
py{311}-{docs,flake8}
flake8
docs
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps =
-rrequirements.txt
django32: Django>=3.2,<4.0
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
setenv =
sqlite: DJANGO_SETTINGS_MODULE = fernet_fields.test.settings.sqlite
pg: DJANGO_SETTINGS_MODULE = fernet_fields.test.settings.pg
allowlist_externals =
coverage
commands =
coverage run -a runtests.py fernet_fields/test --tb short
[testenv:py311-flake8]
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[testenv:py311-docs]
deps = Sphinx
changedir = {toxinidir}/doc
commands =
sphinx-build -aEWq -b html . _build/html
[flake8]
exclude = .tox,.git,__pycache__,doc/conf.py
max-line-length = 100