forked from nats-io/nats.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 836 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
REPO_OWNER=nats-io
PROJECT_NAME=nats.py
SOURCE_CODE=nats
help:
@cat $(MAKEFILE_LIST) | \
grep -E '^[a-zA-Z_-]+:.*?##' | \
sed "s/local-//" | \
sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean:
find . -name "*.py[co]" -delete
deps:
pip install pipenv --upgrade
pipenv install --dev
format:
yapf -i --recursive $(SOURCE_CODE)
yapf -i --recursive tests
test:
yapf --recursive --diff $(SOURCE_CODE)
yapf --recursive --diff tests
mypy
flake8 ./nats/js/
pytest
ci: deps
# pipenv run yapf --recursive --diff $(SOURCE_CODE)
# pipenv run yapf --recursive --diff tests
# pipenv run mypy
pipenv run flake8 --ignore="W391, W503, W504" ./nats/js/
pipenv run pytest -x -vv -s --continue-on-collection-errors
watch:
while true; do pipenv run pytest -v -s -x; sleep 10; done