aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-12-05 21:12:04 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2017-12-10 11:49:43 +0100
commitd60b32074098d50b04e408c1304dd6f6120654ed (patch)
treec76810475eefcccbe788ed8ed528aa17fa7869a3 /contrib/devtools
parentc7399e7082805de6d04e9bf2e8bacd49e3adaae5 (diff)
Add Travis check for unused Python imports
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-xcontrib/devtools/lint-python.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/devtools/lint-python.sh b/contrib/devtools/lint-python.sh
new file mode 100755
index 0000000000..9303fcc8ef
--- /dev/null
+++ b/contrib/devtools/lint-python.sh
@@ -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 .