Skip to content

Commit 6343dd6

Browse files
committed
add isort task to makefile
1 parent 7443b60 commit 6343dd6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
WATCH_FILES= find . -type f -not -path '*/\.*' | grep -i '.*[.]py$$' 2> /dev/null
1+
PY_FILES= find . -type f -not -path '*/\.*' | grep -i '.*[.]py$$' 2> /dev/null
22

33

4-
test:
5-
py.test $(test)
6-
74
entr_warn:
85
@echo "----------------------------------------------------------"
96
@echo " ! File watching functionality non-operational ! "
@@ -12,9 +9,14 @@ entr_warn:
129
@echo "See http://entrproject.org/"
1310
@echo "----------------------------------------------------------"
1411

12+
isort:
13+
isort `${PY_FILES}`
14+
15+
test:
16+
py.test $(test)
1517

1618
watch_test:
17-
if command -v entr > /dev/null; then ${WATCH_FILES} | entr -c $(MAKE) test; else $(MAKE) test entr_warn; fi
19+
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) test; else $(MAKE) test entr_warn; fi
1820

1921
build_docs:
2022
cd doc && $(MAKE) html
@@ -26,4 +28,4 @@ flake8:
2628
flake8 libtmux tests
2729

2830
watch_flake8:
29-
if command -v entr > /dev/null; then ${WATCH_FILES} | entr -c $(MAKE) flake8; else $(MAKE) flake8 entr_warn; fi
31+
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) flake8; else $(MAKE) flake8 entr_warn; fi

0 commit comments

Comments
 (0)