forked from ben-denham/labtech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (32 loc) · 844 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
38
.PHONY: deps example sort-imports lint mypy test check build docs-serve docs-build docs-github docs-notebook
deps:
poetry install
example:
poetry run python -m examples.basic
jupyter:
poetry run jupyter lab
mlflow:
poetry run mlflow ui --port 5000 --backend-store-uri examples/storage/mlruns
sort-imports:
poetry run ruff check --select "I" --fix
lint:
poetry run ruff check
mypy:
poetry run mypy --show-error-codes labtech examples
test:
poetry run pytest \
--cov="labtech" \
--cov-report="html:tests/coverage" \
--cov-report=term
check: sort-imports lint mypy test
build:
poetry build
docs-serve:
poetry run mkdocs serve
docs-build:
poetry run mkdocs build
docs-github:
poetry run mkdocs gh-deploy
docs-notebooks:
pandoc -o examples/cookbook.ipynb docs/cookbook.md
pandoc -o examples/tutorial.ipynb docs/tutorial.md