Files
textual/Makefile
Dave Pearson fcd84c564c Add a build command that also builds offline docs
Also include them in the source tarball.
2023-02-07 16:46:34 +00:00

48 lines
946 B
Makefile

.PHONY: test
test:
pytest --cov-report term-missing --cov=textual tests/ -vv
.PHONY: unit-test
unit-test:
pytest --cov-report term-missing --cov=textual tests/ -vv -m "not integration_test"
.PHONY: test-snapshot-update
test-snapshot-update:
pytest --cov-report term-missing --cov=textual tests/ -vv --snapshot-update
.PHONY: typecheck
typecheck:
mypy src/textual
.PHONY: format
format:
black src
.PHONY: format-check
format-check:
black --check src
.PHONY: clean-screenshot-cache
clean-screenshot-cache:
rm -rf .screenshot_cache
.PHONY: docs-serve
docs-serve: clean-screenshot-cache
mkdocs serve --config-file mkdocs-online.yml
.PHONY: docs-build
docs-build:
mkdocs build --config-file mkdocs-online.yml
.PHONY: docs-build-offline
docs-build-offline:
mkdocs build --config-file mkdocs-offline.yml
.PHONY: docs-deploy
docs-deploy: clean-screenshot-cache
mkdocs gh-deploy
.PHONY: build
build: docs-build-offline
poetry build