summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1c8a52a6e5349daa442fb5b527d0f49134059163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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 unit tests and behave tests
	poetry run pytest
	poetry run behave --no-skipped --format progress2

build:
	poetry build

install: clean ## install the package to the active Python's site-packages
	poetry install