-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (48 loc) · 916 Bytes
/
Copy pathMakefile
File metadata and controls
62 lines (48 loc) · 916 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
default: check
.PHONY:
clean-cache:
@find . -type d -name "__pycache__" ! -path "./env/*" -exec rm -rf {} +
@rm -rf .ruff_cache .pytest_cache
.PHONY:
clean-reports:
@rm -f reports/demo_*
.PHONY:
clean-uv-cache:
@uv cache clean
.PHONY:
check:
@uv tool run ruff check .
.PHONY:
build:
@uv build
.PHONY:
test:
@uv tool run pytest
.PHONY:
format:
@uv tool run ruff format .
.PHONY:
fix: format
@uv tool run ruff check --fix
.PHONY:
demo:
@DEMO=true uv run src/demo.py
.PHONY:
demo-workflow:
@DEMO=true uv run src/demo_workflow.py
.PHONY:
run:
@uvicorn main:app --host 0.0.0.0 --port 8000 --app-dir src
.PHONY:
dev:
@uvicorn main:app --host 0.0.0.0 --port 8000 --app-dir src --reload
.PHONY:
container-build:
@docker build -t upsonic-investment-report-generator .
.PHONY:
container-dev:
@docker run \
--rm \
-p 8000:8000 \
--env-file .env \
upsonic-investment-report-generator:latest