forked from MLT-OSS/FirstData
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 1013 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 1013 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
.PHONY: validate check-ids check-domains check build-indexes help
help:
@echo "Usage:"
@echo " make validate Validate all source JSON files against the schema"
@echo " make check-ids Check for duplicate IDs across all source files"
@echo " make check-domains Check for domain field case inconsistencies"
@echo " make check Run all checks (validate + check-ids + check-domains)"
@echo " make build-indexes Rebuild all index and badge files"
validate:
@echo "Validating source JSON files..."
@find firstdata/sources -name "*.json" | xargs uv run check-jsonschema \
--schemafile firstdata/schemas/datasource-schema.json
@echo "✅ All files are valid."
check-ids:
@echo "Checking for duplicate IDs..."
@uv run python scripts/check_ids.py
check-domains:
@echo "Checking domain consistency..."
@uv run python scripts/check_domains.py
check: validate check-ids check-domains
build-indexes:
@echo "Building indexes and badges..."
@uv run python scripts/build_indexes.py