2011-09-17 18:27:02 +00:00
|
|
|
[tox]
|
|
|
|
|
envlist =
|
2017-10-19 22:51:44 +00:00
|
|
|
# Python/Django combinations that are officially supported
|
2021-10-06 05:53:01 +00:00
|
|
|
py{36,37,38,39}-django{22}
|
2021-10-06 05:52:11 +00:00
|
|
|
py{36,37,38,39,310}-django{32}
|
|
|
|
|
py{38,39,310}-django{40}
|
2021-02-20 12:41:17 +00:00
|
|
|
py37-{flake8,bandit,readme,docs,isort}
|
2011-09-17 18:27:02 +00:00
|
|
|
|
|
|
|
|
[testenv]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Unit tests
|
2015-04-20 21:59:19 +00:00
|
|
|
deps =
|
2017-10-15 17:46:44 +00:00
|
|
|
coverage
|
2020-11-29 21:27:16 +00:00
|
|
|
pytest-django
|
2019-04-08 19:50:10 +00:00
|
|
|
django22: Django>=2.2,<3.0
|
2021-09-27 18:36:13 +00:00
|
|
|
django32: Django>=3.2,<4.0
|
|
|
|
|
django40: Django>=4.0a1,<4.1
|
2020-11-25 22:07:00 +00:00
|
|
|
|
2020-04-14 20:21:20 +00:00
|
|
|
commands =
|
2020-11-29 21:27:16 +00:00
|
|
|
coverage run -m pytest
|
2020-11-25 19:56:03 +00:00
|
|
|
coverage xml
|
2017-10-15 17:46:44 +00:00
|
|
|
|
2020-11-25 20:01:53 +00:00
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
3.6: py36
|
|
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
2020-11-25 22:07:00 +00:00
|
|
|
3.9: py39
|
2021-10-06 05:52:11 +00:00
|
|
|
3.10: py310
|
2020-11-25 20:01:53 +00:00
|
|
|
|
2020-12-03 22:22:58 +00:00
|
|
|
[gh-actions:env]
|
|
|
|
|
DJANGO =
|
|
|
|
|
2.2: django22
|
|
|
|
|
3.2: django32
|
|
|
|
|
4.0: django40
|
|
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-bandit]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = PyCQA security linter
|
|
|
|
|
deps = bandit<1.6
|
2020-11-25 20:15:45 +00:00
|
|
|
commands = - bandit -r --ini tox.ini
|
2020-11-25 20:11:14 +00:00
|
|
|
ignore_errors = true
|
2019-04-08 19:50:10 +00:00
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-docs]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Build the HTML documentation
|
2019-04-08 19:50:10 +00:00
|
|
|
deps = sphinx
|
2019-04-09 08:44:29 +00:00
|
|
|
commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
|
2019-04-08 19:50:10 +00:00
|
|
|
whitelist_externals = make
|
|
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-flake8]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Static code analysis and code style
|
2017-10-15 17:46:44 +00:00
|
|
|
deps = flake8
|
|
|
|
|
commands = flake8
|
|
|
|
|
|
2021-02-20 12:41:17 +00:00
|
|
|
[testenv:py37-isort]
|
|
|
|
|
description = Ensure imports are ordered
|
|
|
|
|
skip_install = True
|
|
|
|
|
deps = isort
|
|
|
|
|
commands = isort tests setup.py analytical --check --diff
|
|
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-readme]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Ensure README renders on PyPI
|
2019-04-08 18:14:01 +00:00
|
|
|
deps = twine
|
|
|
|
|
commands =
|
|
|
|
|
{envpython} setup.py -q sdist bdist_wheel
|
|
|
|
|
twine check dist/*
|
2017-11-22 23:56:11 +00:00
|
|
|
|
2019-04-08 19:50:10 +00:00
|
|
|
[bandit]
|
|
|
|
|
exclude = .cache,.git,.tox,build,dist,docs,tests
|
|
|
|
|
targets = .
|
2017-10-15 17:46:44 +00:00
|
|
|
|
|
|
|
|
[flake8]
|
2019-04-08 18:14:01 +00:00
|
|
|
exclude = .cache,.git,.tox,build,dist
|
2017-10-15 17:46:44 +00:00
|
|
|
max-line-length = 100
|