-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 976 Bytes
/
Makefile
File metadata and controls
45 lines (33 loc) · 976 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
43
44
45
lint:
yamlfmt -lint .
mbake format --check Makefile
prettier --check frontend/.
npm run lint --prefix frontend
uv run ruff check .; uv run ruff check . --diff
format:
yamlfmt .
mbake format Makefile
prettier --write frontend/.
ruff format .; ruff check . --fix
radon:
uv run radon cc ./backend -a -na
run:
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4 --app-dir backend
dev:
uv run uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 1 --app-dir backend --reload --log-level debug
front:
npm run dev --prefix frontend
doc:
uv run zensical serve --dev-addr localhost:3000 --open
test:
uv run pytest -s -x --cov=backend/app -v; coverage html
sync:
uv sync --all-groups
uv export --no-hashes --no-dev -o requirements.txt
export:
uv export --no-hashes --no-dev -o requirements.txt
changelog:
uv run towncrier build
safety:
uv run safety scan
.PHONY: lint format radon run dev doc test sync export changelog front safety