]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
check-package: fix code style
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Mon, 22 Jan 2018 00:44:35 +0000 (22:44 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 29 Jan 2018 22:14:24 +0000 (23:14 +0100)
Ignore these warnings:
F401 'lib.ConsecutiveEmptyLines' imported but unused

And remove comments that are not needed anymore.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/checkpackagelib/lib_config.py
utils/checkpackagelib/lib_hash.py
utils/checkpackagelib/lib_mk.py
utils/checkpackagelib/lib_patch.py
utils/checkpackagelib/readme.txt

index 26ebb393d1dc955664ecd4c2a1586b72c1e19987..11d885f8c7f07bb4f55c0a605d26cc0c66cc423b 100644 (file)
@@ -6,11 +6,10 @@
 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):
index c4d055ee2292a7f5710efe297dd01c26007e617d..6d4cc9fd62c2dd8e220fbaa4fd1430e72f9d027d 100644 (file)
@@ -6,11 +6,10 @@
 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):
index a6cfeb6d15ca139e2fbeb83957a86a490cb9dbab..2df2e1a8842ae70a42fca9611cf866b8079810ba 100644 (file)
@@ -7,11 +7,10 @@
 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):
index 591f13c4942c3b8794e3c84e4ae239b948648988..555621afa149734b189ce98c8bab55e51e8ef25b 100644 (file)
@@ -6,8 +6,7 @@
 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):
index 85e10fe34badf63064e091f6ab7045fdf3275322..3bfe289607e868ef877110780a0230265ae0013e 100644 (file)
@@ -28,8 +28,6 @@ Some hints when changing this code:
 - 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