diff --git a/tox.ini b/tox.ini index e019db2..f26aed5 100644 --- a/tox.ini +++ b/tox.ini @@ -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