-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (50 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
67 lines (50 loc) · 1.63 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
.PHONY: lint format format-check test test-unit test-integration test-perf install docs
# Default target
all: lint test duvet
# Install dependencies
install:
uv venv
uv pip install -e ".[dev,test]"
# Run linting checks
lint:
uv run ruff check src/
uv run ruff check test/ || true
# Check formatting (no changes, just verify)
format-check:
uv run ruff format --check src/ test/
# Format code
format:
uv run ruff format src/ test/
uv run ruff check --fix src/ test/
# Run all tests with combined coverage
test: test-unit test-integration test-examples
# Run unit tests with coverage
test-unit:
uv run pytest test/ --ignore=test/integration/ --ignore=test/performance/ --verbose --cov=src/s3_encryption --cov-report=term-missing --cov-fail-under=89
# Run integration tests with separate coverage
test-integration:
uv run pytest test/integration/ --verbose --cov=src/s3_encryption --cov-report=term-missing --cov-fail-under=83
# Run performance tests
test-perf:
uv run pytest test/performance/ --verbose -x
test-examples:
uv run pytest examples/test/ -v
# Clean up cache files
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .pytest_cache -exec rm -rf {} +
find . -type d -name .coverage -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf .duvet/reports/ .duvet/requirements/
duvet: | clean duvet-report
duvet-report:
duvet report
duvet-view-report-mac:
open .duvet/reports/report.html
# Build docs locally
docs:
uv pip install -e ".[docs]"
uv run sphinx-build -b html docs/ docs/_build/html
@echo "Docs built at docs/_build/html/index.html"
docs-open: docs
open docs/_build/html/index.html