py-libp2p/Makefile

16 lines
437 B
Makefile
Raw Normal View History

FILES_TO_LINT = libp2p tests examples setup.py
format:
black $(FILES_TO_LINT)
isort --recursive $(FILES_TO_LINT)
lintroll:
2019-08-14 05:32:54 +08:00
mypy -p libp2p -p examples --config-file mypy.ini
black --check $(FILES_TO_LINT)
isort --recursive --check-only $(FILES_TO_LINT)
flake8 $(FILES_TO_LINT)
protobufs:
cd libp2p/crypto/pb && protoc --python_out=. --mypy_out=. crypto.proto
cd libp2p/pubsub/pb && protoc --python_out=. --mypy_out=. rpc.proto