forked from rogeriochaves/langstream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 814 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 814 Bytes
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
.PHONY: test doctest test-integration docs install
test:
PYTHONPATH=$$PYTHONPATH:. pytest -s -m "not integration" $(filter-out $@,$(MAKECMDGOALS))
test-integration:
PYTHONPATH=$$PYTHONPATH:. pytest -s -m integration $(filter-out $@,$(MAKECMDGOALS))
doctest:
PYTHONPATH=$$PYTHONPATH:. pytest --doctest-modules langstream/utils && PYTHONPATH=$PYTHONPATH:. pytest --doctest-modules langstream/core && PYTHONPATH=$PYTHONPATH:. pytest --doctest-modules langstream/contrib/llms
nbtest:
nbdoc_test --fname docs/docs/
docs:
make pdocs && make nbdocs && cd docs && npm run build
pdocs:
pdoc --html -o ./docs/static/reference --template-dir ./docs/pdoc_template langstream --force
nbdocs:
nbdoc_build --srcdir docs/docs
docs-dev-server:
cd docs && npm start
install:
pip install -r requirements.txt
%:
@: