metrics/Makefile

31 строка
667 B
Makefile
Исходник Обычный вид История

2021-02-22 13:25:41 +03:00
.PHONY: test clean docs env
# assume you have installed need packages
export SPHINX_MOCK_REQUIREMENTS=1
clean:
# clean all temp runs
rm -rf $(shell find . -name "mlruns")
rm -rf _ckpt_*
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf ./docs/build
rm -rf ./docs/source/generated
rm -rf ./docs/source/*/generated
rm -rf ./docs/source/api
test: clean env
# run tests with coverage
2021-03-15 10:52:44 +03:00
python -m pytest torchmetrics tests -v --cov=torchmetrics
2021-02-22 13:25:41 +03:00
python -m coverage report
docs: clean
pip install --quiet -r docs/requirements.txt
python -m sphinx -b html -W docs/source docs/build
env:
pip install -r requirements.txt
pip install -r tests/requirements.txt