olmocr/Makefile
2025-01-27 18:41:13 +00:00

18 lines
339 B
Makefile

.PHONY : docs
docs :
rm -rf docs/build/
sphinx-autobuild -b html --watch olmocr/ docs/source/ docs/build/
.PHONY : run-checks
run-checks :
isort --check .
black --check .
ruff check .
mypy .
CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules tests/ olmocr/
.PHONY : build
build :
rm -rf *.egg-info/
python -m build