Add isort to CI check

This commit is contained in:
Alex Stokes 2019-08-02 22:36:11 -07:00 committed by Kevin Mai-Husan Chia
parent d78e6dbf04
commit a92d933ed2

View File

@ -2,6 +2,7 @@ lintroll:
# NOTE: disabling `mypy` until we get typing sorted in this repo # NOTE: disabling `mypy` until we get typing sorted in this repo
# mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini # mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
black --check examples libp2p/__init__.py libp2p/host libp2p/kademlia libp2p/network libp2p/peer libp2p/protocol_muxer libp2p/pubsub/*.py libp2p/routing libp2p/security libp2p/stream_muxer libp2p/transport tests setup.py black --check examples libp2p/__init__.py libp2p/host libp2p/kademlia libp2p/network libp2p/peer libp2p/protocol_muxer libp2p/pubsub/*.py libp2p/routing libp2p/security libp2p/stream_muxer libp2p/transport tests setup.py
isort --recursive --check-only examples libp2p/__init__.py libp2p/host libp2p/kademlia libp2p/network libp2p/peer libp2p/protocol_muxer libp2p/pubsub/*.py libp2p/routing libp2p/security libp2p/stream_muxer libp2p/transport tests setup.py
protobufs: protobufs:
cd libp2p/pubsub/pb && protoc --python_out=. rpc.proto cd libp2p/pubsub/pb && protoc --python_out=. rpc.proto