django-downloadview/tox.ini

63 lines
1.2 KiB
INI
Raw Normal View History

[tox]
2020-09-18 08:25:11 +00:00
envlist = py{36,37,38,39}-django{22,30,31},
flake8, sphinx, readme
2020-01-07 13:11:59 +00:00
[travis]
python=
3.8: py38, flake8, sphinx, readme
[testenv]
deps =
coverage
django22: Django>=2.2,<3.0
2020-01-07 13:03:49 +00:00
django30: Django>=3.0,<3.1
2020-09-18 08:23:56 +00:00
django31: Django>=3.1,<3.2
nose
py27: mock
commands =
pip install -e .
pip install -e demo
python -Wd {envbindir}/demo test --cover-package=django_downloadview --cover-package=demoproject {posargs: tests demoproject}
pip freeze
[testenv:flake8]
deps =
flake8
2020-01-07 14:55:44 +00:00
black
isort
commands =
2015-06-12 18:39:00 +00:00
flake8 demo django_downloadview tests
2020-01-07 14:55:44 +00:00
black --check demo django_downloadview tests
isort --check-only --recursive demo django_downloadview tests
[testenv:sphinx]
deps =
Sphinx
commands =
pip install -e .
2015-06-12 17:30:57 +00:00
make --directory=docs SPHINXOPTS='-W' clean {posargs:html doctest linkcheck}
whitelist_externals =
make
[testenv:readme]
deps =
docutils
pygments
commands =
mkdir -p var/docs
2014-02-25 00:07:59 +00:00
rst2html.py --exit-status=2 README.rst var/docs/README.html
rst2html.py --exit-status=2 CONTRIBUTING.rst var/docs/CONTRIBUTING.html
whitelist_externals =
mkdir
[testenv:release]
deps =
wheel
zest.releaser
commands =
fullrelease
2020-01-07 14:01:26 +00:00
[flake8]
2020-01-07 14:51:55 +00:00
max-line-length = 88
2020-01-07 14:42:04 +00:00
ignore = E203, W503