Update hacking for Python3

The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Ignore bashate failure on one-liner loops.

Add pcre devel packages to fix failing pep8 jobs.

Change-Id: I3442174b378cc6e361550fcb9b32a62f61fa7972
This commit is contained in:
Pierre Riteau 2020-09-11 15:44:17 +02:00
parent d3f01bdfd1
commit 7b60585134
3 changed files with 6 additions and 2 deletions

2
bindep.txt Normal file
View File

@ -0,0 +1,2 @@
libpcre3-dev [platform:dpkg test]
pcre-devel [platform:rpm test]

View File

@ -7,7 +7,7 @@ bashate>=0.2 # Apache-2.0
coverage>=4.0 # Apache-2.0
doc8 # Apache-2.0
docker<3 # Apache-2.0
hacking>=0.12.0,<0.13 # Apache-2.0
hacking>=3.0,<3.1.0 # Apache-2.0
molecule<3 # MIT
oslotest>=1.10.0 # Apache-2.0
# paramiko 2.5.0 makes the kayobe-tox-molecule job fail.

View File

@ -3,5 +3,7 @@
# Ignore E006 -- line length greater than 80 char
ROOT=$(readlink -fn $(dirname $0)/.. )
# NOTE(priteau): ignore E010 because it fails on one-liner bash loops:
# https://bugs.launchpad.net/bash8/+bug/1895102
find $ROOT -not -wholename \*.tox/\* -and -not -wholename \*.test/\* \
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006 --ignore E010