Run flake8 and black via tox
JIRA: COMPOSE-4108 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
65aa8fde2f
commit
56fea60595
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ tests/_composes
|
|||||||
htmlcov/
|
htmlcov/
|
||||||
.coverage
|
.coverage
|
||||||
.idea/
|
.idea/
|
||||||
|
.tox
|
||||||
|
19
tox.ini
19
tox.ini
@ -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]
|
[flake8]
|
||||||
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst,setup.py
|
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
||||||
filename = *.py
|
filename = *.py
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user