Added docstring for pep checker

This commit is contained in:
Oliver 2017-04-01 13:17:17 +11:00 committed by GitHub
parent bb99e45676
commit 0df5093440

View File

@ -1,3 +1,12 @@
"""
Checks all source files (.py) against PEP8 coding style.
The following rules are ignored:
- W293 - blank lines contain whitespace
- E501 - line too long (82 characters)
Run this script before submitting a Pull-Request to check your code.
"""
import subprocess
subprocess.call(['pep8', '--exclude=migrations', '--ignore=EC04,W293,E501', 'InvenTree'])
subprocess.call(['pep8', '--exclude=migrations', '--ignore=W293,E501', 'InvenTree'])