-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (49 loc) · 1.37 KB
/
Copy pathMakefile
File metadata and controls
69 lines (49 loc) · 1.37 KB
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
63
64
65
66
67
68
69
.PHONY: install run test lint migrate worker dashboard dashboard-frontend clean \
build-android build-ios build-ohos test-all generate-app
install:
pip install -e ".[dev]"
run:
zerodev run
crawl:
zerodev crawl
pipeline:
zerodev pipeline
worker:
celery -A zerodev.celery_app worker --loglevel=info
worker-beat:
celery -A zerodev.celery_app beat --loglevel=info
dashboard:
uvicorn zerodev.api.app:app --reload --host 0.0.0.0 --port 9716
dashboard-frontend:
cd dashboard && npm run dev
build-android:
cd workspace/$$(ls workspace/ | head -1) && flutter build apk --release
build-ios:
cd workspace/$$(ls workspace/ | head -1) && flutter build ipa --release
build-ohos:
cd workspace/$$(ls workspace/ | head -1) && \
DEVECO_SDK_HOME=$${DEVECO_SDK_HOME} \
OHOS_SDK_HOME=$${OHOS_SDK_HOME} \
flutter build hap --release
test:
pytest -v --cov=zerodev
test-all:
pytest -v --cov=zerodev
cd dashboard && npx tsc --noEmit
lint:
ruff check zerodev/ tests/
ruff format --check zerodev/ tests/
format:
ruff check --fix zerodev/ tests/
ruff format zerodev/ tests/
typecheck:
mypy zerodev/
migrate:
alembic upgrade head
migrate-new:
alembic revision --autogenerate -m "$(msg)"
generate-app:
zerodev pipeline
clean:
rm -rf __pycache__ .pytest_cache .mypy_cache htmlcov dist build *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true