From 0b9207efbe9403225480284298fccc3a2652e895 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 29 Jan 2018 16:04:43 +0100 Subject: [PATCH] Enable flake8 warning for "list comprehension redefines 'foo' from line N" (F812) --- contrib/devtools/lint-python.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/devtools/lint-python.sh b/contrib/devtools/lint-python.sh index 9303fcc8ef..ef7dec769b 100755 --- a/contrib/devtools/lint-python.sh +++ b/contrib/devtools/lint-python.sh @@ -7,4 +7,5 @@ # Check for specified flake8 warnings in python files. # F401: module imported but unused -flake8 --ignore=B,C,E,F,I,N,W --select=F401 . +# F812 list comprehension redefines 'foo' from line N +flake8 --ignore=B,C,E,F,I,N,W --select=F401,F812 .