After #18210 the flake8 exit code in test/lint/lint-python.sh just not used that makes the linter broken.
This PR:
- combines exit codes of
flake8andmypyinto thetest/lint/lint-python.shexit code - documents
mypyas the test dependency
Oh, very nice catch! Thanks for fixing.
ACK eff770fcd299fb79f6cee93bf21f926f0f9f8251 -- patch looks correct
43 | @@ -44,7 +44,6 @@ enabled=( 44 | E743 # do not define functions named "l", "O", or "I" 45 | E901 # SyntaxError: invalid syntax 46 | E902 # TokenError: EOF in multi-line string 47 | - F401 # module imported but unused
why remove this check?
But why does travis not print this warning message?
False positive warnings due to the outdated local flake8 version:
$ pip3 show flake8 | grep Version
Version: 3.5.0
Going to fix this pull now.
Updated eff770fcd299fb79f6cee93bf21f926f0f9f8251 -> 5d77549d8b287eb773db695b88c165ebe3be1005 (pr19172.01 -> pr19172.02, diff):
why remove this check?
Approach ACK 5d77549d8b287eb773db695b88c165ebe3be1005, fine with me
ACK 5d77549d8b287eb773db695b88c165ebe3be1005