mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
2a8bbdf3c6
@ -16,3 +16,6 @@ To create an initial user account, run the command `python InvenTree/manage.py c
|
||||
|
||||
## Documentation
|
||||
For project code documentation, refer to the online [documentation](http://inventree.readthedocs.io/en/latest/) (auto-generated)
|
||||
|
||||
## Coding Style
|
||||
All python code should conform to the [PEP 8](https://www.python.org/dev/peps/pep-0008/) style guide. Run the *pep_check.py* script which will compare all source (.py) files against the PEP 8 style.
|
||||
|
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
|
||||
|
||||
subprocess.call(['pep8', '--exclude=migrations', '--ignore=EC04,W293,E501', 'InvenTree'])
|
||||
subprocess.call(['pep8', '--exclude=migrations', '--ignore=W293,E501', 'InvenTree'])
|
||||
|
Loading…
Reference in New Issue
Block a user