From ec1e646de0bc486e9943f8e07d6ba9cd22642378 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 21 Aug 2020 21:12:05 +1000 Subject: [PATCH] Migrate "style" task --- Makefile | 3 --- tasks.py | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) 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): """