forked from worldcoin/open-iris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 796 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
.PHONY: report-coverage html-coverage build-docs format-code check-code check-ruff check-docstring
all: report-coverage html-coverage build-docs format-code check-code check-ruff check-docstring
report-coverage:
coverage run -m pytest
coverage report --ignore-errors --show-missing --skip-empty
html-coverage:
coverage run -m pytest
coverage html -i
open ./htmlcov/index.html
build-docs:
cd docs/source/_code_subpages/; rm -f *.rst
cd docs; sphinx-apidoc -o ./source/_code_subpages ../src/iris; make clean html
format-code:
isort src/iris tests
black src/iris tests docs
check-code: check-ruff check-docstrings
check-ruff:
@printf "Running check-ruff\n"
ruff check src/iris scripts tests setup.py
@printf "\n"
check-docstrings:
pydocstyle --explain src/iris scripts setup.py