Migrate "style" task

This commit is contained in:
Oliver Walters 2020-08-21 21:12:05 +10:00
parent ab75f85555
commit ec1e646de0
2 changed files with 9 additions and 3 deletions

View File

@ -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:

View File

@ -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):
""" """