File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ PY_FILES = find . -type f -not -path '*/\.*' | grep -i '.*[.]py$$' 2> /dev/null
2+
3+
4+ entr_warn :
5+ @echo " ----------------------------------------------------------"
6+ @echo " ! File watching functionality non-operational ! "
7+ @echo " "
8+ @echo " Install entr(1) to automatically run tasks on file change."
9+ @echo " See http://entrproject.org/ "
10+ @echo " ----------------------------------------------------------"
11+
12+ isort :
13+ isort ` ${PY_FILES} `
14+
15+ black :
16+ black ` ${PY_FILES} ` --skip-string-normalization
17+
18+ test :
19+ py.test $(test )
20+
21+ watch_test :
22+ if command -v entr > /dev/null; then ${PY_FILES} | entr -c $( MAKE) test ; else $( MAKE) test entr_warn; fi
23+
24+ build_docs :
25+ cd doc && $(MAKE ) html
26+
27+ watch_docs :
28+ cd doc && $(MAKE ) watch_docs
29+
30+ flake8 :
31+ flake8 setup.py sample-code qencode tests
32+
33+ watch_flake8 :
34+ if command -v entr > /dev/null; then ${PY_FILES} | entr -c $( MAKE) flake8; else $( MAKE) flake8 entr_warn; fi
You can’t perform that action at this time.
0 commit comments