-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (42 loc) · 1.68 KB
/
Copy pathMakefile
File metadata and controls
59 lines (42 loc) · 1.68 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
.PHONY: lint format lint-check identity-check test test-fast test-no-coverage migrate reindex gazetteers ogm-nightly cache-prime cache-prime-background kamal-registry-login transfer-readiness transfer-readiness-full
BACKEND_DIR = backend
lint:
@echo "Checking backend-focused code with ruff..."
cd $(BACKEND_DIR) && ruff check app tests scripts
format:
@echo "Formatting backend-focused code with ruff..."
cd $(BACKEND_DIR) && ruff format app tests scripts
cd $(BACKEND_DIR) && ruff check --fix app tests scripts
lint-check:
@echo "Checking formatting without modifying files..."
cd $(BACKEND_DIR) && ruff format --check app tests scripts
cd $(BACKEND_DIR) && ruff check app tests scripts
identity-check:
./scripts/verify_identity_cleanup.sh
test:
@echo "Running backend test suite..."
cd $(BACKEND_DIR) && pytest --full-trace
test-fast:
@echo "Running backend test suite in parallel..."
cd $(BACKEND_DIR) && pytest -n 4
test-no-coverage:
@echo "Running backend test suite without coverage requirements..."
cd $(BACKEND_DIR) && pytest --full-trace
migrate:
cd $(BACKEND_DIR) && python scripts/run_migrations.py
reindex:
cd $(BACKEND_DIR) && python scripts/run_index.py
gazetteers:
cd $(BACKEND_DIR) && python scripts/run_gazetteers.py
ogm-nightly:
cd $(BACKEND_DIR) && python scripts/trigger_ogm_nightly_sync.py
cache-prime:
cd $(BACKEND_DIR) && python scripts/prime_generated_caches.py $(ARGS)
cache-prime-background:
cd $(BACKEND_DIR) && ./scripts/start_cache_prime_background.sh $(ARGS)
kamal-registry-login:
./scripts/kamal_registry_login.sh
transfer-readiness:
./scripts/verify_transfer_readiness.sh
transfer-readiness-full:
./scripts/verify_transfer_readiness.sh --full-history