diff --git a/tox.ini b/tox.ini index 8907118bc..3765b3195 100644 --- a/tox.ini +++ b/tox.ini @@ -46,6 +46,7 @@ deps = -r{toxinidir}/linters-requirements.txt commands = + bash -c "for f in $(find . -path './roles/*/library/*.py' | xargs); do echo Checking shebang on $f; if head -1 $f | grep -q '^#!'; then echo $f 'starts with #!, it should not as Ansible will choose the interpreter'; exit 1; fi; done" flake8 {posargs} yamllint -s -f parsable . python -m ansiblelint --version