-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (45 loc) · 1.49 KB
/
Makefile
File metadata and controls
57 lines (45 loc) · 1.49 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: help install install-dev lint format type-check clean test
help:
@echo "AtlasPatch Development Commands"
@echo "===================================="
@echo " make install - Install the package in development mode"
@echo " make install-dev - Install package with development dependencies"
@echo " make lint - Run ruff linter"
@echo " make format - Format code with ruff"
@echo " make type-check - Run mypy type checking"
@echo " make test - Run pytest tests"
@echo " make test-cov - Run tests with coverage report"
@echo " make check - Run lint, format check, and type checking"
@echo " make clean - Remove build artifacts and cache files"
@echo " make pre-commit - Install pre-commit hooks"
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
lint:
ruff check .
format:
ruff format .
format-check:
ruff format --check .
type-check:
mypy atlas_patch --ignore-missing-imports
test:
pytest
test-cov:
pytest --cov=atlas_patch --cov-report=html --cov-report=term
check: lint format-check type-check
@echo "All checks passed!"
pre-commit:
pre-commit install
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
rm -rf build/
rm -rf dist/
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf .coverage
rm -rf htmlcov/
@echo "Cleaned up build artifacts and cache files"