forked from algorandfoundation/beaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (35 loc) · 822 Bytes
/
Makefile
File metadata and controls
56 lines (35 loc) · 822 Bytes
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
# ---- Setup ---- #
setup-development:
pip install -e .
pip install -r requirements.txt
setup-wheel:
pip install wheel
# ---- Docs and Distribution ---- #
bdist-wheel:
python setup.py sdist bdist_wheel
# ---- Code Quality ---- #
ALLPY = beaker *.py
black:
black --check $(ALLPY)
flake8:
flake8 $(ALLPY)
MYPY = beaker
mypy:
mypy --show-error-codes $(MYPY)
lint: black flake8 mypy
# ---- Tests ---- #
tests:
pytest beaker
lint-and-test: lint tests
# ---- Integration Tests (algod required) ---- #
all-tests: lint-and-test
# ---- Local Github Actions Simulation via `act` ---- #
# assumes act is installed, e.g. via `brew install act`
ACT_JOB = run-integration-tests
local-gh-job:
act -j $(ACT_JOB)
local-gh-simulate:
act
# ---- Extras ---- #
coverage:
pytest --cov-report html --cov=pyteal