forked from dynamiq-ai/dynamiq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (36 loc) · 995 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
39
40
41
42
43
44
45
46
47
48
install-dependencies-dev:
poetry install --only dev --no-root
install-dependencies-examples:
poetry install --only examples --no-root
install-dependencies-main:
poetry install --only main --no-root
install-dependencies-all:
poetry install --with examples --no-root
install-pre-commit:
pre-commit install --install-hooks
install:
poetry install --no-root
make install-pre-commit
prepare:
pre-commit run --all-files
lint: prepare
test:
pytest tests
test-cov:
mkdir -p ./reports
coverage run -m pytest --junitxml=./reports/test-results.xml tests
coverage report --skip-empty
coverage html -d ./reports/htmlcov --omit="*/test_*,*/tests.py"
coverage xml -o ./reports/coverage.xml --omit="*/test_*,*/tests.py"
build-mkdocs:
rm -rf mkdocs/
python scripts/generate_mkdocs.py
cp README.md mkdocs/index.md
cp -rf docs/tutorials/ mkdocs/tutorials/
mkdocs build
publish-mkdocs:
make build-mkdocs
mkdocs gh-deploy --force
run-mkdocs-locally:
make build-mkdocs
mkdocs serve