Skip to content

Commit a28d0e1

Browse files
committed
build(Makefile): Update to latest and greatest
1 parent 0cb93ef commit a28d0e1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
PY_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

35
entr_warn:
46
@echo "----------------------------------------------------------"
@@ -12,7 +14,7 @@ isort:
1214
poetry run isort `${PY_FILES}`
1315

1416
black:
15-
poetry run black `${PY_FILES}` --skip-string-normalization
17+
poetry run black `${PY_FILES}`
1618

1719
test:
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

2325
build_docs:
24-
cd doc && $(MAKE) html
26+
$(MAKE) -C docs html
2527

2628
watch_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

2937
flake8:
30-
poetry run flake8 tmuxp tests
38+
poetry run flake8
3139

3240
watch_flake8:
3341
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) flake8; else $(MAKE) flake8 entr_warn; fi

0 commit comments

Comments
 (0)