avocado-framework / inspektor

Inspektor code checker
Other
11 stars 17 forks source link

Ignore error E402. #8

Closed ruda closed 9 years ago

ruda commented 9 years ago

Up from a recent pep8 1.6.0, inspektor started to complain about sources that doesn't have imports in the top level, before any other code, so inspektor will fail with: E402 module level import not at top of file on the files.

Since the current autopep8 (v1.1) cannot automatically fix E402, we will ignore the check of E402.

Plus: Do not run check_all() twice in check_file().

Signed-off-by: Rudá Moura rmoura@redhat.com