import re
from base import _CheckFunction
-# Notice: ignore 'imported but unused' from pyflakes for check functions.
-from lib import ConsecutiveEmptyLines
-from lib import EmptyLastLine
-from lib import NewlineAtEof
-from lib import TrailingSpace
+from lib import ConsecutiveEmptyLines # noqa: F401
+from lib import EmptyLastLine # noqa: F401
+from lib import NewlineAtEof # noqa: F401
+from lib import TrailingSpace # noqa: F401
def _empty_or_comment(text):
import re
from base import _CheckFunction
-# Notice: ignore 'imported but unused' from pyflakes for check functions.
-from lib import ConsecutiveEmptyLines
-from lib import EmptyLastLine
-from lib import NewlineAtEof
-from lib import TrailingSpace
+from lib import ConsecutiveEmptyLines # noqa: F401
+from lib import EmptyLastLine # noqa: F401
+from lib import NewlineAtEof # noqa: F401
+from lib import TrailingSpace # noqa: F401
def _empty_line_or_comment(text):
import re
from base import _CheckFunction
-# Notice: ignore 'imported but unused' from pyflakes for check functions.
-from lib import ConsecutiveEmptyLines
-from lib import EmptyLastLine
-from lib import NewlineAtEof
-from lib import TrailingSpace
+from lib import ConsecutiveEmptyLines # noqa: F401
+from lib import EmptyLastLine # noqa: F401
+from lib import NewlineAtEof # noqa: F401
+from lib import TrailingSpace # noqa: F401
class Indent(_CheckFunction):
import re
from base import _CheckFunction
-# Notice: ignore 'imported but unused' from pyflakes for check functions.
-from lib import NewlineAtEof
+from lib import NewlineAtEof # noqa: F401
class ApplyOrder(_CheckFunction):
- when there is no other reason for ordering, use alphabetical order (e.g. keep
the check functions in alphabetical order, keep the imports in alphabetical
order, and so on).
-- use pyflakes to detect and fix potential problems.
-- use pep8 formatting.
- keep in mind that for every class the method before() will be called before
any line is served to be checked by the method check_line(). A class that
checks the filename should only implement the method before(). A function that