fix linters

Partial-Fix: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I460f5593b66c073a75b713bac848dcd66b639e9c
This commit is contained in:
Sorin Sbarnea 2019-10-17 14:10:12 +01:00
parent 027a33befd
commit fb3f16a822
2 changed files with 10 additions and 1 deletions

View File

@ -31,3 +31,6 @@ gzip
# Required to build language docs
gettext
# debian requirements (linters)
libffi-dev [platform:dpkg]
libssl-dev [platform:dpkg]

View File

@ -19,9 +19,12 @@ setenv =
PIP_DISABLE_PIP_VERSION_CHECK=1
passenv =
ANSIBLE_*
CURL_CA_BUNDLE
DOCKER_*
PYTEST*
REQUESTS_CA_BUNDLE
SSH_AUTH_SOCK
SSL_CERT_FILE
TERM
install_command = pip install {opts} {packages}
deps =
@ -77,7 +80,10 @@ commands =
[testenv:linters]
skip_install = true
deps = pre-commit
deps =
# workaround for https://github.com/ansible/ansible-lint/issues/590
virtualenv==16.3.0 # 16.7.6 not working
pre-commit
commands =
python -m pre_commit run -a {posargs:}
bash -c tools/check_duplicate_jinja_blocks.sh