From 31972dfd9ee7b4239d3ffe7b25725ea3cdac1c10 Mon Sep 17 00:00:00 2001 From: Tim Heap Date: Fri, 26 Feb 2016 13:58:01 +0200 Subject: [PATCH] Check imports with isort on drone --- .drone.yml | 6 ++++++ setup.cfg | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.drone.yml b/.drone.yml index 71fe23ad51..2370964a4c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,12 @@ build: commands: - XDG_CACHE_HOME=/drone/pip-cache pip install flake8 - flake8 wagtail + isort: + image: python:3.5 + commands: + - XDG_CACHE_HOME=/drone/pip-cache pip install wheel + - XDG_CACHE_HOME=/drone/pip-cache pip install isort -e .[testing,docs] + - isort --check-only --diff --recursive wagtail js: image: node:4.2.4 commands: diff --git a/setup.cfg b/setup.cfg index 2a9acf13da..450525f9a7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,6 @@ [bdist_wheel] universal = 1 + +[isort] +line_length=100 +multi_line_output=4