-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
47 lines (36 loc) · 892 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
.PHONY: all lint build
all: lint build
lint: mypy black flake8 isort
mypy:
mypy \
--disable-error-code "annotation-unchecked" \
--follow-imports=silent \
--ignore-missing-imports \
--implicit-optional \
--install-types \
--non-interactive \
-p boa_zksync
black:
black -C -t py311 boa_zksync/ tests/
flake8: black
flake8 boa_zksync/ tests/
isort: black
isort boa_zksync/ tests/ setup.py
build:
pip install .
# run tests without forked tests (which require access to a node)
test:
pytest -nauto tests/
coverage:
pytest \
--cov=boa_zksync \
--cov-append \
--cov-report term-missing:skip-covered \
--cov-fail-under=80 \
tests/
clean:
@find . -name '*.pyc' -exec rm -f {} +
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '*~' -exec rm -f {} +
@find . -name '__pycache__' -exec rmdir {} +
# note: for pypi upload, see pypi-publish.sh