@@ -17,7 +17,7 @@ VIRTUAL_ENV ?= .venv
1717all : install
1818
1919.PHONY : ci
20- ci : check test # # Run all tasks that determine CI status
20+ ci : format check test mkdocs # # Run all tasks that determine CI status
2121
2222.PHONY : watch
2323watch : install .clean-test # # Continuously run all CI tasks when files chanage
@@ -27,25 +27,25 @@ watch: install .clean-test ## Continuously run all CI tasks when files chanage
2727run : install
2828 poetry run python $(PACKAGE ) /__main__.py
2929
30- .PHONY : demo # # Run the example
31- demo :
32- cd examples && make doctor
30+ .PHONY : ipython # # Launch an IPython session
31+ ipython : install
32+ poetry run ipython --ipython-dir=notebooks
3333
34- # SYSTEM DEPENDENCIES ##########################################################
34+ # SYSTEM DEPENDENCIES #########################################################
3535
3636.PHONY : doctor
3737doctor : # # Confirm system dependencies are available
38- verchew/script.py
38+ bin/verchew
3939
40- # PROJECT DEPENDENCIES #########################################################
40+ # PROJECT DEPENDENCIES ########################################################
4141
4242DEPENDENCIES := $(VIRTUAL_ENV ) /.poetry-$(shell bin/checksum pyproject.toml poetry.lock)
4343
4444.PHONY : install
4545install : $(DEPENDENCIES ) .cache
4646
4747$(DEPENDENCIES ) : poetry.lock
48- @ poetry config virtualenvs.in-project true || poetry config settings.virtualenvs.in-project true
48+ @ poetry config virtualenvs.in-project true
4949 poetry install
5050 @ touch $@
5151
6262
6363.PHONY : format
6464format : install
65- poetry run isort $(PACKAGES ) --recursive --apply
66- poetry run black $(PACKAGES )
65+ poetry run isort $(PACKAGES ) notebooks --recursive --apply
66+ poetry run black $(PACKAGES ) notebooks
6767 @ echo
6868
6969.PHONY : check
@@ -81,8 +81,8 @@ RANDOM_SEED ?= $(shell date +%s)
8181FAILURES := .cache/v/cache/lastfailed
8282
8383PYTEST_OPTIONS := --random --random-seed=$(RANDOM_SEED )
84- ifdef DISABLE_COVERAGE
85- PYTEST_OPTIONS += --no- cov --disable-warnings
84+ ifndef DISABLE_COVERAGE
85+ PYTEST_OPTIONS += --cov= $( PACKAGE )
8686endif
8787PYTEST_RERUN_OPTIONS := --last-failed --exitfirst
8888
@@ -131,9 +131,9 @@ $(MKDOCS_INDEX): docs/requirements.txt mkdocs.yml docs/*.md
131131 @ cd docs/about && ln -sf ../../LICENSE.md license.md
132132 poetry run mkdocs build --clean --strict
133133
134- # Workaround: https://github.com/rtfd/readthedocs.org/issues/5090
135134docs/requirements.txt : poetry.lock
136135 @ poetry run pip freeze -qqq | grep mkdocs > $@
136+ @ poetry run pip freeze -qqq | grep Pygments >> $@
137137
138138.PHONY : uml
139139uml : install docs/* .png
@@ -142,8 +142,8 @@ docs/*.png: $(MODULES)
142142 - mv -f classes_$(PACKAGE ) .png docs/classes.png
143143 - mv -f packages_$(PACKAGE ) .png docs/packages.png
144144
145- .PHONY : mkdocs-live
146- mkdocs-live : mkdocs
145+ .PHONY : mkdocs-serve
146+ mkdocs-serve : mkdocs
147147 eval " sleep 3; bin/open http://127.0.0.1:8000" &
148148 poetry run mkdocs serve
149149
0 commit comments