mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Update CI to use pycostyle instead of pep8
This commit is contained in:
parent
4e09b32dd9
commit
fa5493a5d8
@ -9,7 +9,7 @@ python:
|
|||||||
- "3.5"
|
- "3.5"
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install pep8
|
- pip install pycodestyle
|
||||||
before_script:
|
before_script:
|
||||||
- psql --version
|
- psql --version
|
||||||
- psql -U postgres -c 'SELECT version();'
|
- psql -U postgres -c 'SELECT version();'
|
||||||
|
@ -23,8 +23,11 @@ fi
|
|||||||
|
|
||||||
# Check all python source files for PEP 8 compliance, but explicitly
|
# Check all python source files for PEP 8 compliance, but explicitly
|
||||||
# ignore:
|
# ignore:
|
||||||
|
# - W504: line break after binary operator
|
||||||
# - E501: line greater than 80 characters in length
|
# - E501: line greater than 80 characters in length
|
||||||
pep8 --ignore=E501 netbox/
|
pycodestyle \
|
||||||
|
--ignore=W504,E501 \
|
||||||
|
netbox/
|
||||||
RC=$?
|
RC=$?
|
||||||
if [[ $RC != 0 ]]; then
|
if [[ $RC != 0 ]]; then
|
||||||
echo -e "\n$(info) one or more PEP 8 errors detected, failing build."
|
echo -e "\n$(info) one or more PEP 8 errors detected, failing build."
|
||||||
|
Loading…
Reference in New Issue
Block a user