-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathMakefile
34 lines (24 loc) · 1009 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: test doctest test-integration docs install
test:
PYTHONPATH=$$PYTHONPATH:. poetry run pytest -s -m "not integration" $(filter-out $@,$(MAKECMDGOALS))
test-integration:
PYTHONPATH=$$PYTHONPATH:. poetry run pytest -s -m integration $(filter-out $@,$(MAKECMDGOALS))
doctest:
PYTHONPATH=$$PYTHONPATH:. poetry run pytest --doctest-modules langstream/utils && PYTHONPATH=$PYTHONPATH:. poetry run pytest --doctest-modules langstream/core && PYTHONPATH=$PYTHONPATH:. poetry run pytest --doctest-modules langstream/contrib/llms
nbtest:
poetry run nbdoc_test --fname docs/docs/
docs:
make pdocs && make nbdocs && cd docs && npm run build
pdocs:
poetry run pdoc --html -o ./docs/static/reference --template-dir ./docs/pdoc_template langstream --force
nbdocs:
poetry run nbdoc_build --srcdir docs/docs
docs-dev-server:
cd docs && npm start
install:
@if ! command -v poetry &> /dev/null; then \
curl -sSL https://install.python-poetry.org | python3 -; \
fi
poetry install --all-extras
%:
@: