From fa5493a5d8d27ada3c52cb7db6c0890029dabcb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=C3=ABl=20Beutot?= Date: Wed, 27 Jun 2018 17:24:48 +0200 Subject: [PATCH] Update CI to use pycostyle instead of pep8 --- .travis.yml | 2 +- scripts/cibuild.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 94bfa0dab..33abc8425 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ python: - "3.5" install: - pip install -r requirements.txt - - pip install pep8 + - pip install pycodestyle before_script: - psql --version - psql -U postgres -c 'SELECT version();' diff --git a/scripts/cibuild.sh b/scripts/cibuild.sh index 4f4fe1ca3..c0a49b5ef 100755 --- a/scripts/cibuild.sh +++ b/scripts/cibuild.sh @@ -23,8 +23,11 @@ fi # Check all python source files for PEP 8 compliance, but explicitly # ignore: +# - W504: line break after binary operator # - E501: line greater than 80 characters in length -pep8 --ignore=E501 netbox/ +pycodestyle \ + --ignore=W504,E501 \ + netbox/ RC=$? if [[ $RC != 0 ]]; then echo -e "\n$(info) one or more PEP 8 errors detected, failing build."