Run flake8 in linters
We should run flake8 when we run the other checks. This repo is mostly python. Change-Id: I3cbecf9ef24f784c072841656b55c4162673dcaa
This commit is contained in:
3
tox.ini
3
tox.ini
@@ -35,6 +35,7 @@ commands =
|
|||||||
passenv = *
|
passenv = *
|
||||||
commands =
|
commands =
|
||||||
{[testenv:build]commands}
|
{[testenv:build]commands}
|
||||||
|
{[testenv:pep8]commands}
|
||||||
/bin/bash -c "ansible-galaxy collection install $(ls {toxinidir}/build_artifact/openstack-cloud-*) --force -p {toxinidir}"
|
/bin/bash -c "ansible-galaxy collection install $(ls {toxinidir}/build_artifact/openstack-cloud-*) --force -p {toxinidir}"
|
||||||
/bin/bash -c "cd ansible_collections/openstack/cloud && ansible-test sanity"
|
/bin/bash -c "cd ansible_collections/openstack/cloud && ansible-test sanity"
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@ commands = {posargs}
|
|||||||
# modules unchanged and then clean them in subsequent patches.
|
# modules unchanged and then clean them in subsequent patches.
|
||||||
ignore = W503,H4,E501,E402,H301,H236,F401,E128,W504,F841,F403,F405
|
ignore = W503,H4,E501,E402,H301,H236,F401,E128,W504,F841,F403,F405
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,ansible_collections
|
||||||
|
|
||||||
[testenv:ansible-new]
|
[testenv:ansible-new]
|
||||||
# Need to pass some env vars for the Ansible playbooks
|
# Need to pass some env vars for the Ansible playbooks
|
||||||
|
|||||||
Reference in New Issue
Block a user