mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Split lint tox envs
This commit is contained in:
parent
ad7f229a8c
commit
0d79fb8d61
1 changed files with 16 additions and 10 deletions
26
tox.ini
26
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue