forked from algorand/pyteal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (35 loc) · 916 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
setup-development:
pip install -e.[development]
setup-docs: setup-development
pip install -r docs/requirements.txt
pip install doc2dash
setup-wheel:
pip install wheel
bdist-wheel:
python setup.py sdist bdist_wheel
bundle-docs-clean:
rm -rf docs/pyteal.docset
bundle-docs: bundle-docs-clean
cd docs && \
make html && \
doc2dash --name pyteal --index-page index.html --online-redirect-url https://pyteal.readthedocs.io/en/ _build/html && \
tar -czvf pyteal.docset.tar.gz pyteal.docset
generate-init:
python -m scripts.generate_init
check-generate-init:
python -m scripts.generate_init --check
ALLPY = docs examples pyteal scripts tests *.py
black:
black --check $(ALLPY)
flake8:
flake8 $(ALLPY)
MYPY = pyteal scripts
mypy:
mypy $(MYPY)
lint: black flake8 mypy
test-unit:
pytest
build-and-test: check-generate-init lint test-unit
# Extras:
coverage:
pytest --cov-report html --cov=pyteal