forked from mindee/doctr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 835 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
31
32
33
34
35
36
37
.PHONY: quality style test test-common test-tf test-torch docs-single-version docs
# this target runs checks on all files
quality:
isort . -c
ruff check .
black --check .
mypy doctr/
pydocstyle doctr/
# this target runs checks on all files and potentially modifies some of them
style:
isort .
black .
ruff --fix .
# Run tests for the library
test:
coverage run -m pytest tests/common/
USE_TF='1' coverage run -m pytest tests/tensorflow/
USE_TORCH='1' coverage run -m pytest tests/pytorch/
test-common:
coverage run -m pytest tests/common/
test-tf:
USE_TF='1' coverage run -m pytest tests/tensorflow/
test-torch:
USE_TORCH='1' coverage run -m pytest tests/pytorch/
# Check that docs can build
docs-single-version:
sphinx-build docs/source docs/_build -a
# Check that docs can build
docs:
cd docs && bash build.sh