-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (59 loc) · 1.66 KB
/
Copy pathMakefile
File metadata and controls
73 lines (59 loc) · 1.66 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
72
73
.PHONY: install test lint format type-check clean build
# Install dependencies
install:
uv sync --dev
# Run tests
test:
uv run pytest
# Run tests with coverage
test-cov:
uv run pytest --cov=bvp_scraper --cov-report=html --cov-report=term
# Lint and type check code
lint:
uv run ruff check bvp_scraper tests examples
# Format code
format:
uv run ruff format bvp_scraper tests examples
# Fix linting issues automatically
lint-fix:
uv run ruff check bvp_scraper tests examples --fix
# Type checking (using ruff)
type-check:
uv run ruff check bvp_scraper tests examples --select=TCH
# Run all quality checks
check: lint type-check test
# Clean build artifacts
clean:
rm -rf dist/
rm -rf build/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Build package
build: clean
uv build
# Install in development mode
dev-install:
uv pip install -e .
# Run examples
example-basic:
uv run python examples/basic_usage.py
example-advanced:
uv run python examples/advanced_usage.py
# Help
help:
@echo "Available commands:"
@echo " install - Install dependencies"
@echo " test - Run tests"
@echo " test-cov - Run tests with coverage"
@echo " lint - Lint and type check code"
@echo " lint-fix - Fix linting issues automatically"
@echo " format - Format code"
@echo " type-check - Run type checking"
@echo " check - Run all quality checks"
@echo " clean - Clean build artifacts"
@echo " build - Build package"
@echo " dev-install - Install in development mode"
@echo " example-* - Run example scripts"