-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 975 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 975 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
.PHONY: setup lint typecheck test verify infra-setup infra-verify web-setup web-verify
setup:
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -e .
.venv/bin/pip install ruff mypy pytest pytest-cov hypothesis types-PyYAML "moto[dynamodb,ses]" "boto3-stubs[dynamodb,ses,bedrock-runtime]"
lint:
.venv/bin/ruff check src tests
typecheck:
.venv/bin/mypy src
test:
.venv/bin/pytest -q --cov=openjobradar --cov-branch --cov-fail-under=85
verify: lint typecheck test
# Separate from `verify`: the CDK app (infra/) is its own toolchain (Node/npm), mirrored by its
# own CI job rather than folded into the Python `verify` gate. See infra/README.md.
infra-setup:
cd infra && npm ci
infra-verify:
cd infra && npm run build && npm test && npm run synth
# Same reasoning as infra: the web app (web/) is its own toolchain. See web/README.md.
web-setup:
cd web && npm ci
web-verify:
cd web && npx tsc --noEmit && npm test && npm run build