Merge "Don't stop dib-lint on first flake8 failure"
This commit is contained in:
commit
bef58a0880
@ -81,7 +81,7 @@ for i in $(find elements -type f \
|
|||||||
|
|
||||||
# Ensure 4 spaces indent are used
|
# Ensure 4 spaces indent are used
|
||||||
if [ "$(file -b --mime-type $i)" = "text/x-python" ]; then
|
if [ "$(file -b --mime-type $i)" = "text/x-python" ]; then
|
||||||
flake8 $i
|
flake8 $i || error "$i failed flake8"
|
||||||
else
|
else
|
||||||
if ! excluded indent ; then
|
if ! excluded indent ; then
|
||||||
indent_regex='^\( \{4\}\)* \{1,3\}[^ ]'
|
indent_regex='^\( \{4\}\)* \{1,3\}[^ ]'
|
||||||
|
Loading…
Reference in New Issue
Block a user