Split lint tox envs

This commit is contained in:
David Smith 2020-12-07 19:58:44 +00:00
parent ad7f229a8c
commit 0d79fb8d61

26
tox.ini
View file

@ -2,7 +2,7 @@
envlist =
# Python/Django combinations that are officially supported
py{36,37,38,39}-django{22,30,31}
py37-{lint,bandit,readme,docs}
py37-{flake8,black,isort,bandit,readme,docs}
[testenv]
description = Unit tests
@ -36,17 +36,23 @@ deps = sphinx
commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
whitelist_externals = make
[testenv:py37-lint]
[testenv:py37-flake8]
description = Static code analysis and code style
skip_install = True
deps =
flake8
isort
black
commands =
flake8
isort tests setup.py analytical --check --diff
black tests setup.py analytical --check
deps = flake8
commands = flake8
[testenv:py37-black]
description = Ensure compliance with Black code style
skip_install = True
deps = black
commands = black tests setup.py analytical --check
[testenv:py37-isort]
description = Ensure imports are ordered
skip_install = True
deps = isort
commands = isort tests setup.py analytical --check --diff
[testenv:py37-readme]
description = Ensure README renders on PyPI