2019-08-03 18:02:27 +08:00
|
|
|
FILES_TO_LINT = libp2p tests examples setup.py
|
|
|
|
|
|
|
|
format:
|
|
|
|
black $(FILES_TO_LINT)
|
|
|
|
isort --recursive $(FILES_TO_LINT)
|
|
|
|
|
2019-08-03 01:52:53 +08:00
|
|
|
lintroll:
|
2019-08-14 05:32:54 +08:00
|
|
|
mypy -p libp2p -p examples --config-file mypy.ini
|
2019-08-03 18:02:27 +08:00
|
|
|
black --check $(FILES_TO_LINT)
|
|
|
|
isort --recursive --check-only $(FILES_TO_LINT)
|
2019-08-04 00:11:49 +08:00
|
|
|
flake8 $(FILES_TO_LINT)
|
2019-08-03 03:20:48 +08:00
|
|
|
|
|
|
|
protobufs:
|
2019-08-16 07:01:44 +08:00
|
|
|
cd libp2p/crypto/pb && protoc --python_out=. --mypy_out=. crypto.proto
|
|
|
|
cd libp2p/pubsub/pb && protoc --python_out=. --mypy_out=. rpc.proto
|