mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
58 lines
1.2 KiB
INI
58 lines
1.2 KiB
INI
[tox]
|
|
envlist =
|
|
# Python/Django combinations that are officially supported
|
|
py{27,35,36,37}-django111
|
|
py{35,36,37,38}-django22
|
|
py{36,37,38}-django30
|
|
py37-{flake8,bandit,readme,docs}
|
|
|
|
[testenv]
|
|
description = Unit tests
|
|
deps =
|
|
coverage
|
|
django111: Django>=1.11,<2.0
|
|
django22: Django>=2.2,<3.0
|
|
django30: Django>=3.0,<3.1
|
|
commands =
|
|
coverage run setup.py test
|
|
coverage xml
|
|
|
|
[gh-actions]
|
|
python =
|
|
2.7: py27
|
|
3.5: py35
|
|
3.6: py36
|
|
3.7: py37
|
|
3.8: py38
|
|
|
|
[testenv:py37-bandit]
|
|
description = PyCQA security linter
|
|
deps = bandit<1.6
|
|
commands = - bandit -r --ini tox.ini
|
|
ignore_errors = true
|
|
|
|
[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
|
|
|
|
[testenv:py37-flake8]
|
|
description = Static code analysis and code style
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[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
|