mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-04 14:28:48 +00:00
Migrate "style" task
This commit is contained in:
parent
ab75f85555
commit
ec1e646de0
3
Makefile
3
Makefile
@ -26,9 +26,6 @@ translate:
|
|||||||
cd InvenTree && python3 manage.py makemessages
|
cd InvenTree && python3 manage.py makemessages
|
||||||
cd InvenTree && python3 manage.py compilemessages
|
cd InvenTree && python3 manage.py compilemessages
|
||||||
|
|
||||||
# Run PEP style checks against source code
|
|
||||||
style:
|
|
||||||
flake8 InvenTree
|
|
||||||
|
|
||||||
# Install packages required to generate code docs
|
# Install packages required to generate code docs
|
||||||
docreqs:
|
docreqs:
|
||||||
|
9
tasks.py
9
tasks.py
@ -145,6 +145,15 @@ def update(c):
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@task
|
||||||
|
def style(c):
|
||||||
|
"""
|
||||||
|
Run PEP style checks against InvenTree sourcecode
|
||||||
|
"""
|
||||||
|
|
||||||
|
print("Running PEP style checks...")
|
||||||
|
c.run('flake8 InvenTree')
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def test(c):
|
def test(c):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user