Quellcode durchsuchen

Update CI to use pycostyle instead of pep8

Anaël Beutot vor 7 Jahren
Ursprung
Commit
fa5493a5d8
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. 1 1
      .travis.yml
  2. 4 1
      scripts/cibuild.sh

+ 1 - 1
.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();'

+ 4 - 1
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."