2
0
Эх сурвалжийг харах

Run isort as part of 'make lint'

Matt Westcott 8 жил өмнө
parent
commit
f2ec21b947
3 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 1 1
      .drone.yml
  2. 1 0
      Makefile
  3. 1 0
      setup.py

+ 1 - 1
.drone.yml

@@ -8,7 +8,7 @@ pipeline:
     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]
+      - XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing,docs]
       - isort --check-only --diff --recursive wagtail
   js:
     image: node:4.2.4

+ 1 - 0
Makefile

@@ -17,6 +17,7 @@ develop: clean-pyc
 
 lint:
 	flake8 wagtail
+	isort --check-only --diff --recursive wagtail
 
 test:
 	python runtests.py

+ 1 - 0
setup.py

@@ -46,6 +46,7 @@ testing_extras = [
     # For coverage and PEP8 linting
     'coverage>=3.7.0',
     'flake8>=2.2.0',
+    'isort>=4.2.0',
 ]
 
 # Documentation dependencies