-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
34 lines (24 loc) · 957 Bytes
/
Makefile
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
.PHONY: tests lint format doctest integration_tests_fast evals
tests:
uv run python -m pytest --disable-socket --allow-unix-socket -vv --durations=10 tests/unit_tests
tests_watch:
uv run ptw --now . -- -vv -x tests/unit_tests
integration_tests:
uv run python -m pytest -v --durations=10 --cov=trustcall --cov-report=term-missing --cov-report=html --cov-config=.coveragerc tests/integration_tests
integration_tests_fast:
uv run python -m pytest -n auto --durations=10 -v --cov=trustcall --cov-report=term-missing --cov-report=html --cov-config=.coveragerc tests/integration_tests
evals:
LANGCHAIN_TEST_CACHE=tests/evals/cassettes uv run python -m pytest tests/evals/test_evals.py
lint:
uv run ruff check .
uv run mypy .
doctest:
uv run python -m pytest -n auto --durations=10 --doctest-modules trustcall
format:
ruff check --select I --fix
uv run ruff format .
uv run ruff check . --fix
build:
uv build
publish:
uv publish --dry-run