-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 1.01 KB
/
Makefile
File metadata and controls
38 lines (30 loc) · 1.01 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
setup:
@echo "Checking prerequisites..."
@python3 --version
@uv --version
@echo "Installing dependencies..."
uv sync --dev
@echo "Installing pre-commit hooks..."
uv run pre-commit install
@echo "Verifying environment..."
uv run databao --help > /dev/null
uv run ruff check src/databao_cli > /dev/null
uv run mypy src/databao_cli > /dev/null
uv run pytest tests/ --co -q > /dev/null
@echo "Environment ready."
check:
uv run pre-commit run --all-files
test:
bash -c 'set -a; [ -f .env ] && source .env; set +a; uv run pytest tests/ -v'
test-cov:
bash -c 'set -a; [ -f .env ] && source .env; set +a; uv run pytest tests/ -v --cov --cov-report=term-missing --cov-report=html'
test-cov-check:
bash -c 'set -a; [ -f .env ] && source .env; set +a; uv run pytest tests/ -v --cov --cov-report=term-missing --cov-fail-under=80'
e2e-test:
uv run --group e2e-tests pytest e2e-tests
nickname:
@git config user.email | cut -d@ -f1
lint-skills:
scripts/validate-agent-guidance.sh
smoke-skills:
scripts/smoke-test-skills.sh