Skip to content

Commit e3b1eb6

Browse files
committed
build(Makefile): Update tasks
1 parent f030bd7 commit e3b1eb6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Makefile

+12-6
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,31 @@ entr_warn:
1010
@echo "----------------------------------------------------------"
1111

1212
isort:
13-
isort `${PY_FILES}`
13+
poetry run isort `${PY_FILES}`
1414

1515
black:
16-
black `${PY_FILES}` --skip-string-normalization
16+
poetry run black `${PY_FILES}`
1717

1818
test:
19-
py.test $(test)
19+
poetry run py.test $(test)
2020

2121
watch_test:
2222
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) test; else $(MAKE) test entr_warn; fi
2323

2424
build_docs:
25-
cd doc && $(MAKE) html
25+
$(MAKE) -C docs html
2626

2727
watch_docs:
28-
cd doc && $(MAKE) watch_docs
28+
if command -v entr > /dev/null; then ${DOC_FILES} | entr -c $(MAKE) build_docs; else $(MAKE) build_docs entr_warn; fi
29+
30+
serve_docs:
31+
$(MAKE) -C docs serve
32+
33+
dev_docs:
34+
$(MAKE) -j watch_docs serve_docs
2935

3036
flake8:
31-
flake8 libtmux tests
37+
poetry run flake8
3238

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

0 commit comments

Comments
 (0)