-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 819 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 819 Bytes
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 --durations=10 --record-mode=none
clean_notebooks:
pre-commit run nbstripout -a
exec_notebooks:
pytest --ff --nbmake --nbmake-timeout=300 --nbmake-kernel=python3 $$(git ls-files | grep ipynb)
docs:
make -C docs html
deps:
pre-commit run poetry-lock -a
pre-commit run poetry-export -a