From a929b70aad3de17abf7d42604d982889d90307be Mon Sep 17 00:00:00 2001
From: George Hickman <george@ghickman.co.uk>
Date: Thu, 18 Jul 2019 12:10:53 +0100
Subject: [PATCH] Run isort in CI

---
 .circleci/config.yml | 1 +
 .travis.yml          | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5d1ba2991..84b52c157 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -75,6 +75,7 @@ jobs:
           command: |
             . venv/bin/activate
             flake8 ./opentech
+            make sort
             python manage.py collectstatic --noinput --verbosity=0
             python manage.py check
             python manage.py makemigrations --check --noinput --verbosity=1
diff --git a/.travis.yml b/.travis.yml
index 3a9983e24..1f81e3d39 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,6 +50,9 @@ script:
   # Run python code style checks
   - flake8 ./opentech
 
+  # Check import sort order of Python files
+  - make sort
+
   # Collect static
   - python manage.py collectstatic --noinput --verbosity=0
 
-- 
GitLab