summaryrefslogtreecommitdiff
path: root/pep8.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pep8.sh')
-rwxr-xr-xpep8.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/pep8.sh b/pep8.sh
index 276f602..4720ddd 100755
--- a/pep8.sh
+++ b/pep8.sh
@@ -1,5 +1,14 @@
#!/bin/bash
-echo -e "\nRunning: (pep8 --show-source --show-pep8 --select=errors --testsuite=.)\n\n"
-pep8 --show-source --show-pep8 --select=errors --testsuite=./
-echo -e "\n\n"
+echo -e "\nRunning: pep8 ... \n"
+
+# Ignoring autogenerated files
+# -- Migration directories
+# Ignoring error codes
+# -- E128 continuation line under-indented for visual indent
+# -- E225 missing whitespace around operator
+# -- E501 line too long
+
+pep8 --exclude=migrations --ignore=E128,E225,E501 slugify test.py setup.py
+
+echo -e "Done.\n"