Skip to content

Commit efc66ab

Browse files
committed
Fix comments to disable pylint checks
1 parent ac5fe6e commit efc66ab

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

msgcheck/msgcheck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def msgcheck_parser():
101101
return parser
102102

103103

104-
# pylint: disable=too-many-branches
105-
def main():
104+
def main(): # pylint: disable=too-many-branches
106105
"""Main function."""
107106
# parse arguments
108107
parser = msgcheck_parser()

msgcheck/po.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@
4242
from . utils import count_lines, replace_formatters
4343

4444

45-
# pylint: disable=too-few-public-methods
46-
class PoReport(object):
45+
class PoReport(object): # pylint: disable=too-few-public-methods
4746
"""A message in report (commonly an error in detected in gettext file)."""
4847

49-
# pylint: disable=too-many-arguments
50-
def __init__(self, message, idmsg='', filename='-', line=0, mid='',
48+
def __init__(self, message, idmsg='', filename='-', line=0, mid='', # pylint: disable=too-many-arguments
5149
mstr='', fuzzy=False):
5250
self.message = message
5351
self.idmsg = idmsg
@@ -109,8 +107,7 @@ class PoMessage(object):
109107
('%d files found', '%d fichiers trouvés')]
110108
"""
111109

112-
# pylint: disable=too-many-arguments
113-
def __init__(self, filename, line, msg, charset, fuzzy, fmt, noqa):
110+
def __init__(self, filename, line, msg, charset, fuzzy, fmt, noqa): # pylint: disable=too-many-arguments
114111
"""Build a PO message."""
115112
self.filename = filename
116113
self.line = line
@@ -298,8 +295,7 @@ def __init__(self, filename):
298295
}
299296
self.msgs = []
300297

301-
# pylint: disable=too-many-arguments
302-
def _add_message(self, numline_msgid, fuzzy, fmt, noqa, msg):
298+
def _add_message(self, numline_msgid, fuzzy, fmt, noqa, msg): # pylint: disable=too-many-arguments
303299
"""
304300
Add a message from PO file in list of messages.
305301
"""
@@ -318,7 +314,7 @@ def _add_message(self, numline_msgid, fuzzy, fmt, noqa, msg):
318314
self.msgs.append(PoMessage(self.filename, numline_msgid, msg,
319315
self.props['charset'], fuzzy, fmt, noqa))
320316

321-
def read(self):
317+
def read(self): # pylint: disable=too-many-locals
322318
"""
323319
Read messages in PO file.
324320
"""

tests/test_msgcheck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def local_path(filename):
3434
return os.path.join(os.path.dirname(os.path.abspath(__file__)), filename)
3535

3636

37-
# pylint: disable=too-many-public-methods
38-
class TestMsgCheck(unittest.TestCase):
37+
class TestMsgCheck(unittest.TestCase): # pylint: disable=too-many-public-methods
3938
"""Tests on msgcheck."""
4039

4140
def test_compilation(self):

0 commit comments

Comments
 (0)