Skip to content

Commit ae74770

Browse files
pycodestyle: Test E402 (imports at top of file)
After the sys.path cleanups and the removal of pkg/machines/, there are no more cases of E402. Remove our exception for it.
1 parent 2a036ed commit ae74770

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/test-static-code

+1-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ else
128128
PYFILES="$(git grep -lI '^#!.*python3') $(git ls-files "*.py")"
129129
# W504 and W503 are mutually exclusive (and both disabled by default)
130130
# explicitly giving '--ignore W504' here is actually more strict than the default
131-
# TODO: E402 should be fixed
132-
out=$(python3 -m "$PYTHON_STYLE_CHECKER" --max-line-length=415 --ignore E402,W504 $PYFILES) || true
131+
out=$(python3 -m "$PYTHON_STYLE_CHECKER" --max-line-length=415 --ignore W504 $PYFILES) || true
133132
if [ -n "$out" ]; then
134133
echo "$out" >&2
135134
echo "not ok 7 $PYTHON_STYLE_CHECKER test"

0 commit comments

Comments
 (0)