We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d22e4e7 commit f1857ddCopy full SHA for f1857dd
.travis.yml
@@ -3,5 +3,6 @@ python:
3
- "2.7"
4
install:
5
- pip install -r requirements.txt
6
+ - pip install pep8
7
script:
8
- ./scripts/cibuild.sh
scripts/cibuild.sh
@@ -21,6 +21,16 @@ if [[ ! -z $SYNTAX ]]; then
21
EXIT=1
22
fi
23
24
+# Check all python source files for PEP 8 compliance, but explicitly
25
+# ignore:
26
+# - E501: line greater than 80 characters in length
27
+pep8 --ignore=E501 netbox/
28
+RC=$?
29
+if [[ $RC != 0 ]]; then
30
+ echo -e "\n$(info) one or more PEP 8 errors detected, failing build."
31
+ EXIT=$RC
32
+fi
33
+
34
# Prepare configuration file for use in CI
35
CONFIG="netbox/netbox/configuration.py"
36
cp netbox/netbox/configuration.example.py $CONFIG
0 commit comments