-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1.02 KB
/
Makefile
File metadata and controls
49 lines (38 loc) · 1.02 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
.PHONY: help install dev test lint format clean build
help:
@echo "CacheWraith - Available commands:"
@echo " make install - Install package"
@echo " make dev - Install in development mode"
@echo " make test - Run tests"
@echo " make lint - Run linters"
@echo " make format - Format code"
@echo " make clean - Clean build artifacts"
@echo " make run - Run CacheWraith"
install:
pip install -e .
dev:
pip install -e ".[dev]"
test:
pytest -v
test-cov:
pytest --cov=cachewraith --cov-report=html
lint:
ruff check cachewraith/
black --check cachewraith/
format:
black cachewraith/
ruff check --fix cachewraith/
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
build: clean
python -m build
run:
python -m cachewraith
# Development helpers
check:
python -c "from cachewraith import __version__; print(f'CacheWraith v{__version__}')"