From 0df5093440798640471a72f1f2679d6f26062599 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 1 Apr 2017 13:17:17 +1100 Subject: [PATCH] Added docstring for pep checker --- pep_check.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pep_check.py b/pep_check.py index 64de2a568f..71ce27db68 100644 --- a/pep_check.py +++ b/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 -subprocess.call(['pep8', '--exclude=migrations', '--ignore=EC04,W293,E501', 'InvenTree']) \ No newline at end of file +subprocess.call(['pep8', '--exclude=migrations', '--ignore=W293,E501', 'InvenTree'])