-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 933 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 933 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
34
35
36
.DEFAULT_GOAL := all
.PHONY: help install check lint format typecheck test build clean all
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-12s\033[0m %s\n", $$1, $$2}'
install: ## Install package in editable mode with all deps
pip install -e ".[dev,all]"
pre-commit install
lint: ## Run ruff linter
ruff check .
format: ## Run ruff formatter (auto-fix)
ruff check --fix .
ruff format .
typecheck: ## Run mypy type checker
mypy src/x402_openai
test: ## Run pytest
pytest
build: ## Build wheel and sdist
python -m build
clean: ## Remove build artifacts
rm -rf dist/ build/ *.egg-info src/*.egg-info .mypy_cache .pytest_cache
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
check: ## Run all pre-commit hooks (lint + format + typecheck)
pre-commit run --all-files
all: check test ## Run all checks + tests