PyCQA / flake8-import-order

Flake8 plugin that checks import order against various Python Style Guides
GNU Lesser General Public License v3.0
278 stars 72 forks source link

Improve error messages a bit #17

Closed public closed 10 years ago

public commented 10 years ago
tests/test_cases/bad_first_import.py:1:1: I101 Imported names are in the wrong order. Should be Column, Integer, Metadata
tests/test_cases/complete_google.py:10:1: I100 Imports statements are in the wrong order. import X should be before import flake8_import_error
tests/test_cases/complete_google.py:10:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_google.py:11:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_google.py:12:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_google.py:13:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_google.py:14:1: I100 Imports statements are in the wrong order. from X should be before from flake8_import_error
tests/test_cases/complete_google.py:14:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_google.py:16:1: I101 Imported names are in the wrong order. Should be C, b, d
tests/test_cases/complete_google.py:17:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_google.py:20:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_with_bad_order.py:5:1: I100 Imports statements are in the wrong order. import os should be before import sys
tests/test_cases/complete_with_bad_order.py:7:1: I100 Imports statements are in the wrong order. from functools should be before from os
tests/test_cases/complete_with_bad_order.py:10:1: I100 Imports statements are in the wrong order. import X should be before from X
tests/test_cases/complete_with_bad_order.py:17:1: I101 Imported names are in the wrong order. Should be B, C, D
tests/test_cases/complete_with_bad_order.py:21:1: I100 Imports statements are in the wrong order. from Z.A should be before from Z.A.B
tests/test_cases/complete_with_bad_whitespace.py:11:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_with_bad_whitespace.py:16:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_with_bad_whitespace.py:20:1: I201 Missing newline before sections or imports.
tests/test_cases/complete_wrong_section.py:8:1: I100 Imports statements are in the wrong order. from __future__ should be before from os
tests/test_cases/complete_wrong_section.py:18:1: I100 Imports statements are in the wrong order. from Y should be before from flake8_import_error
tests/test_cases/complete_wrong_section.py:19:1: I100 Imports statements are in the wrong order. import Y should be before from Y