django-analytical/tox.ini

58 lines
1.2 KiB
INI
Raw Normal View History

2011-09-17 18:27:02 +00:00
[tox]
envlist =
# Python/Django combinations that are officially supported
py{36,37,38,39}-django{22,30,31}
2020-11-25 19:56:03 +00:00
py37-{flake8,bandit,readme,docs}
2011-09-17 18:27:02 +00:00
[testenv]
description = Unit tests
deps =
coverage
pytest-django
django22: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
commands =
coverage run -m pytest
2020-11-25 19:56:03 +00:00
coverage xml
2020-11-25 20:01:53 +00:00
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
2020-11-25 20:01:53 +00:00
2020-11-25 20:04:49 +00:00
[testenv:py37-bandit]
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
2020-11-25 20:04:49 +00:00
[testenv:py37-docs]
description = Build the HTML documentation
deps = sphinx
commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
whitelist_externals = make
2020-11-25 20:04:49 +00:00
[testenv:py37-flake8]
description = Static code analysis and code style
deps = flake8
commands = flake8
2020-11-25 20:04:49 +00:00
[testenv:py37-readme]
description = Ensure README renders on PyPI
deps = twine
commands =
{envpython} setup.py -q sdist bdist_wheel
twine check dist/*
[bandit]
exclude = .cache,.git,.tox,build,dist,docs,tests
targets = .
[flake8]
exclude = .cache,.git,.tox,build,dist
max-line-length = 100