jrnl/Makefile
2020-04-18 13:58:57 -07:00

31 lines
549 B
Makefile

# A Makefile for commands I run frequently:
clean:
rm -rf dist
rm -rf _static
rm -rf jrnl.egg-info
rm -rf _build
rm -rf _sources
rm -rf _static
rm -rf site/
rm -f *.html
html:
poetry run mkdocs serve
format: ## Format files to match style
poetry run black .
lint: ## Check style with various tools
poetry check
poetry run pyflakes .
poetry run black --check --diff .
test: lint ## Run behave tests
poetry run behave
build:
poetry build
install: clean ## install the package to the active Python's site-packages
poetry install