-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
37 lines (26 loc) · 849 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
34
35
36
37
.PHONY: list docs
list:
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
init:
poetry install --with dev --with docs --with jupyter --sync
pre-commit install
style:
pre-commit run black -a
lint:
pre-commit run ruff -a
mypy:
dmypy run searvey
test:
python -m pytest -vlx
cov:
coverage erase
python -m pytest --cov=searvey --cov-report term-missing -n auto --durations=10 --record-mode=none
clean_notebooks:
pre-commit run nbstripout -a
exec_notebooks:
python -m nbconvert --to notebook --execute --ExecutePreprocessor.kernel_name=python3 --stdout examples/* >/dev/null
docs:
make -C docs html
deps:
pre-commit run poetry-lock -a
pre-commit run poetry-export -a