File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 11PY_FILES = find . -type f -not -path '*/\.*' | grep -i '.*[.]py$$' 2> /dev/null
2+ DOC_FILES = find . -type f -not -path '*/\.*' | grep -i '.*[.]rst\$\|.*[.]md\$\|.*[.]css\$\|.*[.]py\$\|mkdocs\.yml\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
3+ SHELL := /bin/bash
24
35entr_warn :
46 @echo " ----------------------------------------------------------"
1214 poetry run isort ` ${PY_FILES} `
1315
1416black :
15- poetry run black ` ${PY_FILES} ` --skip-string-normalization
17+ poetry run black ` ${PY_FILES} `
1618
1719test :
1820 poetry run py.test $(test )
@@ -21,13 +23,19 @@ watch_test:
2123 if command -v entr > /dev/null; then ${PY_FILES} | entr -c $( MAKE) test ; else $( MAKE) test entr_warn; fi
2224
2325build_docs :
24- cd doc && $(MAKE ) html
26+ $(MAKE ) -C docs html
2527
2628watch_docs :
27- cd doc && $(MAKE ) watch_docs
29+ if command -v entr > /dev/null; then ${DOC_FILES} | entr -c $( MAKE) build_docs; else $( MAKE) build_docs entr_warn; fi
30+
31+ serve_docs :
32+ $(MAKE ) -C docs serve
33+
34+ dev_docs :
35+ $(MAKE ) -j watch_docs serve_docs
2836
2937flake8 :
30- poetry run flake8 tmuxp tests
38+ poetry run flake8
3139
3240watch_flake8 :
3341 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