forked from HazyResearch/pdftotree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 586 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
TESTDATA=tests/input
dev:
pip install -r requirements-dev.txt
pip install -e . --use-feature=2020-resolver
pre-commit install
test: $(TESTDATA)/paleo_visual_model.h5 dev check
pytest tests
$(TESTDATA)/paleo_visual_model.h5:
cd tests/input/ && ./download_vision_model.sh
check:
isort -c bin/
isort -c tests/
isort -c pdftotree/
black bin/ --check
black tests/ --check
black pdftotree/ --check
flake8 pdftotree/
flake8 bin/
flake8 tests/
clean:
rm -f $(TESTDATA)/paleo_visual_model.h5
pip uninstall pdftotree
rm -r pdftotree.egg-info
.PHONY: dev test clean check