diff --git a/Makefile b/Makefile index add60ce892..085c55ebf7 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,6 @@ translate: cd InvenTree && python3 manage.py makemessages cd InvenTree && python3 manage.py compilemessages -# Run PEP style checks against source code -style: - flake8 InvenTree # Install packages required to generate code docs docreqs: diff --git a/tasks.py b/tasks.py index c8738e346e..0e369a9254 100644 --- a/tasks.py +++ b/tasks.py @@ -145,6 +145,15 @@ def update(c): """ pass +@task +def style(c): + """ + Run PEP style checks against InvenTree sourcecode + """ + + print("Running PEP style checks...") + c.run('flake8 InvenTree') + @task def test(c): """