-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
49 lines (38 loc) · 924 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
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: check-all
check-all: check-format check-mypy check-pylint check-tests check-pydocstyle docs
.PHONY: check-format
check-format:
isort --check oqpy
black --check --diff oqpy
.PHONY: format
format:
isort oqpy
black oqpy
.PHONY: check-mypy
check-mypy:
mypy oqpy
.PHONY: check-pylint
check-pylint:
pylint oqpy
.PHONY: check-pydocstyle
check-pydocstyle:
pydocstyle oqpy
.PHONY: docs
docs:
make -C docs clean html
.PHONY: docs-clean
docs-clean:
make -C docs clean
.PHONY: open-docs
open-docs:
open docs/_build/html/index.html
.PHONY: check-tests
check-tests:
pytest --cov=oqpy -vv --color=yes tests --cov-fail-under=100
.PHONY: check-citation
check-citation:
cffconvert --validate
.PHONY: install-poetry
install-poetry:
command -v curl >/dev/null 2>&1 || { echo >&2 "please install curl and retry."; exit 1; }
curl -sSL https://install.python-poetry.org | POETRY_VERSION=$(poetry_version) python -