-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (60 loc) · 1.64 KB
/
Makefile
File metadata and controls
71 lines (60 loc) · 1.64 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Starward Development Makefile
# ==============================
.PHONY: help install test test-cov test-allure allure-serve allure-report lint typecheck clean
help:
@echo "Starward Development Commands"
@echo "=============================="
@echo ""
@echo "Setup:"
@echo " make install Install package with dev dependencies"
@echo ""
@echo "Testing:"
@echo " make test Run tests (default)"
@echo " make test-cov Run tests with coverage report"
@echo " make test-allure Run tests and clean allure results"
@echo ""
@echo "Allure Reports:"
@echo " make allure-serve Start Allure server to view results"
@echo " make allure-report Generate static HTML report"
@echo ""
@echo "Code Quality:"
@echo " make lint Run ruff linter"
@echo " make typecheck Run mypy type checker"
@echo ""
@echo "Cleanup:"
@echo " make clean Remove build artifacts and caches"
# Setup
install:
pip install -e ".[dev]"
# Testing
test:
pytest
test-cov:
pytest --cov --cov-report=term-missing
test-allure:
pytest --clean-alluredir
# Allure Reports (requires Allure CLI: brew install allure)
allure-serve:
allure serve allure-results
allure-report:
allure generate allure-results -o allure-report --clean
@echo ""
@echo "Report generated: allure-report/index.html"
# Code Quality
lint:
ruff check src/ tests/
typecheck:
mypy src/
# Cleanup
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf .ruff_cache/
rm -rf htmlcov/
rm -rf allure-results/
rm -rf allure-report/
rm -rf .coverage
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true