From d384320b138283531f54989eb27c7808073ffb52 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 17 Oct 2019 14:10:12 +0100 Subject: [PATCH] fix linters Partial-Fix: https://bugs.launchpad.net/tripleo/+bug/1848512 Change-Id: I460f5593b66c073a75b713bac848dcd66b639e9c --- bindep.txt | 3 +++ tox.ini | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bindep.txt b/bindep.txt index 6a9b0d718..e89007d70 100644 --- a/bindep.txt +++ b/bindep.txt @@ -31,3 +31,6 @@ gzip # Required to build language docs gettext +# debian requirements (linters) +libffi-dev [platform:dpkg] +libssl-dev [platform:dpkg] diff --git a/tox.ini b/tox.ini index cdebb2850..79385bdb0 100644 --- a/tox.ini +++ b/tox.ini @@ -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