-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
33 lines (24 loc) · 648 Bytes
/
Makefile
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
33
MAKEFLAGS = --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.PHONY: build serve live-serve install lint pre-commit unit-tests
.DEFAULT_GOAL := build
build:
python -m scripts.split
python -m scripts.build
serve:
python -m http.server --directory site 8000 --bind localhost
live-serve:
mkdocs serve -f ./docs/mkdocs.yml
install:
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
pre-commit install
lint:
ruff check --fix .
black --color --diff ./scripts
mypy ./scripts
pyupgrade --py311-plus ./scripts/build.py
pre-commit:
pre-commit run --verbose --all-files
unit-tests:
pytest