-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
34 lines (24 loc) · 1.02 KB
/
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:
poetry run python -m pytest --disable-socket --allow-unix-socket -n auto --durations=10 tests/unit_tests
tests_watch:
poetry run ptw --now . -- -vv -x tests/unit_tests
integration_tests:
poetry 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:
poetry 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 poetry run python -m pytest -p no:asyncio --max-asyncio-tasks 4 tests/evals/test_evals.py
lint:
poetry run ruff check .
poetry run mypy .
doctest:
poetry run python -m pytest -n auto --durations=10 --doctest-modules trustcall
format:
ruff check --select I --fix
poetry run ruff format .
poetry run ruff check . --fix
build:
poetry build
publish:
poetry publish --dry-run