Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fix: ## Fix project.
@uv run ruff check --fix --unsafe-fixes

.PHONY: check
check: check/format check/lint check/types ## Run all checks.
check: check/format check/lint check/types check/json ## Run all checks.

.PHONY: check/format
check/format:
Expand All @@ -106,6 +106,14 @@ check/lint:
check/types:
@uv run pyright .

.PHONY: check/json
check/json: ## Validate JSON files.
@echo "Checking JSON files..."
@find . -name "*.json" -type f \
! -path "./.venv/*" \
! -path "./node_modules/*" \
-exec sh -c 'jq empty "{}" > /dev/null 2>&1 || (echo "Invalid JSON: {}" && exit 1)' \;

.PHONY: test
test: ## Run all tests.
@uv run pytest tests/
Expand Down
Loading