Skip to content

Commit 7a9790a

Browse files
jontsaiclaude
andcommitted
feat: add Makefile with common development targets
Add convenient make targets for development workflow: - make help: Display all available commands - make venv: Create virtual environment - make install: Install package and dev dependencies - make test: Run tests quickly - make test-vendor: Run catalog vendor tests - make test-cov: Run tests with coverage - make test-all: Run full tox test suite - make lint: Run code quality checks - make format: Format code - make clean: Clean build artifacts Follows the same help format as toolbox-altimate/Makefile. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6219140 commit 7a9790a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.PHONY: help venv install test test-vendor test-cov test-all clean lint format
2+
3+
## help - Display help about make targets for this Makefile
4+
help:
5+
@cat Makefile | grep '^## ' --color=never | cut -c4- | sed -e "`printf 's/ - /\t- /;'`" | column -s "`printf '\t'`" -t
6+
7+
## venv - Create virtual environment
8+
venv:
9+
python3 -m venv .venv
10+
.venv/bin/pip install --upgrade pip
11+
@echo ""
12+
@echo "Virtual environment created. Activate with:"
13+
@echo " source .venv/bin/activate"
14+
15+
## install - Install package and dependencies in development mode
16+
install:
17+
pip install -e .
18+
pip install pytest pytest-cov tox pre-commit ruff
19+
20+
## test - Run tests quickly
21+
test:
22+
python -m pytest tests/ -v
23+
24+
## test-vendor - Run catalog vendor tests
25+
test-vendor:
26+
python -m pytest tests/test_vendor/test_catalog_v1.py -v
27+
28+
## test-cov - Run tests with coverage report
29+
test-cov:
30+
python -m pytest --cov=src --cov-report=term-missing --cov-report=html tests/ -v
31+
32+
## test-all - Run full test suite with tox (all Python/Pydantic versions)
33+
test-all:
34+
tox
35+
36+
## lint - Run code quality checks
37+
lint:
38+
pre-commit run --all-files
39+
40+
## format - Format code with ruff
41+
format:
42+
ruff format src/ tests/
43+
44+
## clean - Remove build artifacts and cache
45+
clean:
46+
rm -rf build/
47+
rm -rf dist/
48+
rm -rf *.egg-info
49+
rm -rf .pytest_cache/
50+
rm -rf .tox/
51+
rm -rf htmlcov/
52+
rm -rf .coverage
53+
find . -type d -name __pycache__ -exec rm -rf {} +
54+
find . -type f -name '*.pyc' -delete

0 commit comments

Comments
 (0)