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
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
.DEFAULT_GOAL := help
PY := python3

.PHONY: help setup test build-explainers favicons lint check
.PHONY: help setup test coverage build-explainers favicons lint check

help: ## Show the available targets
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | \
awk 'BEGIN{FS = ":.*?## "}{printf " %-16s %s\n", $$1, $$2}'

setup: ## Install the package plus the dev tools (pytest, pre-commit, ruff)
$(PY) -m pip install -e ".[excel,parquet,proxy]" pytest pre-commit ruff
setup: ## Install the package plus the dev tools (pytest, pytest-cov, pre-commit)
$(PY) -m pip install -e ".[excel,parquet,proxy]" pytest pytest-cov pre-commit

test: ## Run the full test suite (mirrors CI)
$(PY) -m pytest tests/ -q

coverage: ## Run the test suite with coverage reporting
$(PY) -m pytest tests/ --cov=faircode --cov-report=term-missing

build-explainers: ## Regenerate explainer pages, data.js, sitemap, and OG images (dark + light)
$(PY) scripts/build_explainers.py
$(PY) scripts/generate_og_images.py
Expand Down