-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (39 loc) · 899 Bytes
/
Copy pathMakefile
File metadata and controls
56 lines (39 loc) · 899 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
# Environment
install:
uv sync
lock:
uv lock
seed:
APP_ENV=development uv run python -m app.seed
server-dev:
APP_ENV=development uv run uvicorn app:create_app --reload
# Linting & formatting (ruff + ty)
lint:
uv run ruff check .
check-format:
uv run ruff format --check .
check-types:
uv run ty check
format:
uv run ruff format .
uv run ruff check . --fix
lint-all: check-types lint check-format
# Testing
test:
APP_ENV=test uv run pytest app
test-cov:
APP_ENV=test uv run pytest app --verbose \
--cov-config=.coveragerc \
--cov=app \
--cov-report=term:skip-covered \
--cov-report=html \
--cov-report=xml \
--cov-branch \
--cov-fail-under=60
test-watch:
APP_ENV=test uv run ptw app
test-integration:
APP_ENV=test uv run pytest tests/integration
test-end-to-end:
APP_ENV=test uv run pytest tests/end-to-end
test-all: test test-integration test-end-to-end