1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update CI to use pycostyle instead of pep8

This commit is contained in:
Anaël Beutot
2018-06-27 17:24:48 +02:00
parent 4e09b32dd9
commit fa5493a5d8
2 changed files with 5 additions and 2 deletions

View File

@@ -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."