mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-05 14:58:50 +00:00
Added docstring for pep checker
This commit is contained in:
parent
bb99e45676
commit
0df5093440
11
pep_check.py
11
pep_check.py
@ -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
|
import subprocess
|
||||||
|
|
||||||
subprocess.call(['pep8', '--exclude=migrations', '--ignore=EC04,W293,E501', 'InvenTree'])
|
subprocess.call(['pep8', '--exclude=migrations', '--ignore=W293,E501', 'InvenTree'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user