Run flake8 and black via tox

JIRA: COMPOSE-4108
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-02-07 12:06:57 +08:00
parent 65aa8fde2f
commit 56fea60595
2 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ tests/_composes
htmlcov/
.coverage
.idea/
.tox

19
tox.ini
View File

@ -1,5 +1,22 @@
[tox]
envlist = py27, py36
[testenv]
deps =
flake8
commands =
flake8 pungi pungi_utils setup.py tests/*py
[testenv:py36]
deps =
{[testenv]deps}
black
commands =
{[testenv]commands}
black --check pungi pungi_utils setup.py tests --exclude tests/_composes
[flake8]
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst,setup.py
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
filename = *.py
max-line-length = 88