From 89f5332ccf59672ecafc36abe07d2351e32a05d5 Mon Sep 17 00:00:00 2001 From: Fabiano Fidêncio Date: Mar 10 2018 19:09:54 +0000 Subject: CI: Ignore E722 pep8 issues on debian machines For now, let's ignore E722 (do not use bare except) in the debian_testing machines that are part of our CI. Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek Signed-off-by: Fabiano Fidêncio --- diff --git a/contrib/ci/run b/contrib/ci/run index 16937fd..b481419 100755 --- a/contrib/ci/run +++ b/contrib/ci/run @@ -392,6 +392,11 @@ export V=1 if "$DEPS"; then stage install-deps deps_install fi +if [[ "$DISTRO_BRANCH" != redhat-* ]]; then + # Ignore "E722 do not use bare except" exceptions + # that are only raised on debian_testing machines. + PEP8_IGNORE+=",E722" +fi stage pep8 find . -path ./src/config -prune -o \ -name \*.py -exec pep8 $PEP8_IGNORE {} + stage autoreconf autoreconf --install --force