From 84b0944b9a5463f2cdf8351edc4f117e6a6d7269 Mon Sep 17 00:00:00 2001
From: George Hickman <george@ghickman.co.uk>
Date: Thu, 18 Jul 2019 12:10:00 +0100
Subject: [PATCH] Wrap up common isort tasks in a makefile

---
 Makefile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..c20c39c8b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.PHONY:
+help:
+	@echo "Usage:"
+	@echo "    make help             prints this help."
+	@echo "    make fix              fix import sort order."
+	@echo "    make sort             run the linter."
+
+.PHONY: fix
+fix:
+	isort -y
+
+.PHONY: sort
+sort:
+	@echo "Running Isort" && isort --check-only --diff || exit 1
-- 
GitLab