-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
34 lines (27 loc) · 1.05 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
.PHONY: test types clean
PROTOCOL_PATH=$(GOPATH)/src/github.com/keybase/client/protocol
AVDLC=$(PROTOCOL_PATH)/node_modules/.bin/avdlc
test-static:
poetry run mypy pykeybasebot/
poetry run flake8
poetry run isort -rc . --check-only
poetry run black . --check
test-unit:
poetry run python -m pytest tests/unit -s
test-accept:
poetry run python -m pytest tests -s
ci: test-static test-unit
test: test-static test-accept
types:
@mkdir -p pykeybasebot/types/keybase1
@mkdir -p pykeybasebot/types/gregor1
@mkdir -p pykeybasebot/types/chat1
@mkdir -p pykeybasebot/types/stellar1
$(AVDLC) -b -l python -t -o pykeybasebot/types/keybase1 $(PROTOCOL_PATH)/avdl/keybase1/*.avdl
$(AVDLC) -b -l python -t -o pykeybasebot/types/gregor1 $(PROTOCOL_PATH)/avdl/gregor1/*.avdl
$(AVDLC) -b -l python -t -o pykeybasebot/types/chat1 $(PROTOCOL_PATH)/avdl/chat1/*.avdl
$(AVDLC) -b -l python -t -o pykeybasebot/types/stellar1 $(PROTOCOL_PATH)/avdl/stellar1/*.avdl
poetry run isort pykeybasebot/types/**/*.py
poetry run black pykeybasebot/types
clean:
rm -rf src/types/*