diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1eca2aa --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +lintroll: + # NOTE: disabling `mypy` until we get typing sorted in this repo + # 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 diff --git a/tox.ini b/tox.ini index 8f20371..c51e854 100644 --- a/tox.ini +++ b/tox.ini @@ -18,6 +18,6 @@ basepython = [testenv:lint] basepython = python3 extras = dev +whitelist_externals = make commands = - 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 + make lintroll