From da9d5cadec47247da40bca3c9d36c14763b4c437 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 2 Aug 2019 10:52:53 -0700 Subject: [PATCH] Disables `mypy` in CI Also moves linting to Makefile to take advantage of globbing. --- Makefile | 4 ++++ tox.ini | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 Makefile 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