Add Travis check for unused Python imports

This commit is contained in:
practicalswift
2017-12-05 21:12:04 +01:00
parent c7399e7082
commit d60b320740
2 changed files with 12 additions and 1 deletions

10
contrib/devtools/lint-python.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
#
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Check for specified flake8 warnings in python files.
# F401: module imported but unused
flake8 --ignore=B,C,E,F,I,N,W --select=F401 .