forked from MemTensor/MemOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 832 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 832 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
38
39
40
41
42
.PHONY: test test-report test-cov
install:
poetry install --extras all --with dev --with test
poetry run pre-commit install --install-hooks
clean:
rm -rf .memos
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf tmp
rm -rf report cov-report
rm -f .coverage .coverage.*
test:
poetry run pytest tests
test-report:
poetry run pytest tests -vv --durations=10 \
--html=report/index.html \
--cov=src/memos \
--cov-report=term-missing \
--cov-report=html:cov-report/src
test-cov:
poetry run pytest tests \
--cov=src/memos \
--cov-report=term-missing \
--cov-report=html:cov-report/src
format:
poetry run ruff check --fix
poetry run ruff format
pre_commit:
poetry run pre-commit run -a
serve:
poetry run uvicorn memos.api.server_api:app
openapi:
poetry run memos export_openapi --output docs/openapi.json