-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 1.47 KB
/
Makefile
File metadata and controls
49 lines (37 loc) · 1.47 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
SHELL := /bin/bash
.PHONY: test test-vcr test-unit test-with-env test-vcr-with-env update-cassettes lint format typecheck
# =============================================================================
# CI commands (no .env sourcing)
# =============================================================================
# Run all tests
test:
ENABLE_LOCAL_OAUTH=false uv run pytest
# Run VCR cassette tests only (tests marked with @pytest.mark.vcr_test)
test-vcr:
ENABLE_LOCAL_OAUTH=false uv run pytest -m vcr_test -v
# Run unit tests (tests NOT marked with @pytest.mark.vcr_test)
test-unit:
ENABLE_LOCAL_OAUTH=false uv run pytest -m "not vcr_test"
# =============================================================================
# Local dev commands (sources .env for API key)
# =============================================================================
# Run all tests with .env loaded
test-with-env:
set -a && source .env && set +a && make test
# Run VCR tests with .env loaded (for recording cassettes)
test-vcr-with-env:
set -a && source .env && set +a && make test-vcr
update-cassettes:
rm tests/cassettes/client/**/*.yaml && rm tests/cassettes/tools/**/*.yaml && make test-vcr-with-env
# =============================================================================
# Code quality
# =============================================================================
# Linting
lint:
uv run ruff check .
# Format code
format:
uv run ruff format .
# Type checking
typecheck:
uv run mypy .