aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/lint-python.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/devtools/lint-python.sh')
-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 .