langchain/Makefile

36 lines
664 B
Makefile
Raw Normal View History

2022-12-28 22:13:08 +00:00
.PHONY: format lint tests tests_watch integration_tests
2022-10-24 21:51:15 +00:00
coverage:
poetry run pytest --cov \
--cov-config=.coveragerc \
--cov-report xml \
--cov-report term-missing:skip-covered
docs_build:
cd docs && poetry run make html
docs_clean:
cd docs && poetry run make clean
docs_linkcheck:
poetry run linkchecker docs/_build/html/index.html
2022-10-24 21:51:15 +00:00
format:
poetry run black .
poetry run isort .
2022-10-24 21:51:15 +00:00
lint:
poetry run mypy .
poetry run black . --check
poetry run isort . --check
poetry run flake8 .
2022-10-24 21:51:15 +00:00
tests:
poetry run pytest tests/unit_tests
2022-10-24 21:51:15 +00:00
2022-12-28 22:13:08 +00:00
tests_watch:
poetry run ptw --now . -- tests/unit_tests
2022-10-24 21:51:15 +00:00
integration_tests:
poetry run pytest tests/integration_tests