From fac35b21e2c2d798face7e289dcff4c1cce0e1a6 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 18 Sep 2019 11:34:08 -0400 Subject: [PATCH] test: lint: Add DisabledOpcodeTemplates to whitelist Also, bump vulture version to include the whitelist for threading module --- ci/lint/04_install.sh | 2 +- test/lint/lint-python-dead-code-whitelist | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/lint/04_install.sh b/ci/lint/04_install.sh index 01322f61e67..6c3019a1aa5 100755 --- a/ci/lint/04_install.sh +++ b/ci/lint/04_install.sh @@ -8,7 +8,7 @@ export LC_ALL=C travis_retry pip3 install codespell==1.15.0 travis_retry pip3 install flake8==3.7.8 -travis_retry pip3 install vulture==0.29 +travis_retry pip3 install vulture==1.0 SHELLCHECK_VERSION=v0.6.0 curl -s "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/ diff --git a/test/lint/lint-python-dead-code-whitelist b/test/lint/lint-python-dead-code-whitelist index 2522c8fa1ce..33bb7b44faa 100644 --- a/test/lint/lint-python-dead-code-whitelist +++ b/test/lint/lint-python-dead-code-whitelist @@ -6,6 +6,7 @@ _.converter # unused attribute (test/functional/test_framework/test_framework.p _.daemon # unused attribute (test/functional/test_framework/socks5.py) data_received # unused function (test/functional/test_framework/mininode.py) DuplicateInput # unused class (test/functional/data/invalid_txs.py) +DisabledOpcodeTemplates # unused class (test/functional/data/invalid_txs.py) _.filename # unused attribute (contrib/macdeploy/custom_dsstore.py) InvalidOPIFConstruction # unused class (test/functional/data/invalid_txs.py) _.is_compressed # unused property (test/functional/test_framework/key.py)