forked from unitaryfund/mitiq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (51 loc) · 1.09 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.PHONY: all
all: dist
.PHONY: build
build: check-all docs test-all
.PHONY: check-all
check-all: check-format check-style check-types
.PHONY: check-format
check-format:
black --check --diff mitiq
.PHONY: check-style
check-style:
flake8
.PHONY: check-types
check-types:
mypy .
.PHONY: clean
clean:
rm -rf dist
rm -rf mitiq.egg-info
rm -rf .pytest_cache/
.PHONY: dist
dist:
python setup.py sdist
.PHONY: docs
docs:
make -C docs html
make -C docs doctest
.PHONY: format
format:
black mitiq
.PHONY: install
install:
pip install -e .
.PHONY: pdf
pdf:
echo "s" | make -C docs latexpdf
.PHONY: requirements
requirements: requirements.txt
pip install -r requirements.txt
.PHONY: test
test:
pytest -v --cov=mitiq --cov-report=term --cov-report=xml mitiq/benchmarks mitiq/pec mitiq/tests mitiq/zne
.PHONY: test-pyquil
test-pyquil:
pytest -v --cov=mitiq --cov-report=term --cov-report=xml mitiq/mitiq_pyquil
.PHONY: test-qiskit
test-qiskit:
pytest -v --cov=mitiq --cov-report=term --cov-report=xml mitiq/mitiq_qiskit
.PHONY: test-all
test-all:
pytest --cov=mitiq --cov-report=term --cov-report=xml