summaryrefslogtreecommitdiff
path: root/pylint/message
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-02-10 19:30:15 +0100
committerGitHub <noreply@github.com>2022-02-10 19:30:15 +0100
commit595ec422d6f9bd32f42c356d2f316ec69e0f7bee (patch)
tree766a12ddd91b43e09f670f913a4069bc7dc82d57 /pylint/message
parente3d5deca2886d9e2d5f2be2a252e39e02ae42b96 (diff)
downloadpylint-git-595ec422d6f9bd32f42c356d2f316ec69e0f7bee.tar.gz
Update ``pydocstringformatter`` to 0.4.0 (#5787)
Diffstat (limited to 'pylint/message')
-rw-r--r--pylint/message/message.py2
-rw-r--r--pylint/message/message_definition.py6
-rw-r--r--pylint/message/message_definition_store.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/pylint/message/message.py b/pylint/message/message.py
index b431d502b..8a12d84b8 100644
--- a/pylint/message/message.py
+++ b/pylint/message/message.py
@@ -32,7 +32,7 @@ _MsgBase = collections.namedtuple(
class Message(_MsgBase):
- """This class represent a message to be issued by the reporters"""
+ """This class represent a message to be issued by the reporters."""
@overload
def __new__(
diff --git a/pylint/message/message_definition.py b/pylint/message/message_definition.py
index 8785e154d..a286f5a6d 100644
--- a/pylint/message/message_definition.py
+++ b/pylint/message/message_definition.py
@@ -58,7 +58,7 @@ class MessageDefinition:
return f"{repr(self)}:\n{self.msg} {self.description}"
def may_be_emitted(self) -> bool:
- """return True if message may be emitted using the current interpreter"""
+ """Return True if message may be emitted using the current interpreter."""
if self.minversion is not None and self.minversion > sys.version_info:
return False
if self.maxversion is not None and self.maxversion <= sys.version_info:
@@ -66,7 +66,7 @@ class MessageDefinition:
return True
def format_help(self, checkerref: bool = False) -> str:
- """return the help string for the given message id"""
+ """Return the help string for the given message id."""
desc = self.description
if checkerref:
desc += f" This message belongs to the {self.checker_name} checker."
@@ -94,7 +94,7 @@ class MessageDefinition:
def check_message_definition(
self, line: Optional[int], node: Optional[nodes.NodeNG]
) -> None:
- """Check MessageDefinition for possible errors"""
+ """Check MessageDefinition for possible errors."""
if self.msgid[0] not in _SCOPE_EXEMPT:
# Fatal messages and reports are special, the node/scope distinction
# does not apply to them.
diff --git a/pylint/message/message_definition_store.py b/pylint/message/message_definition_store.py
index 150c35fe8..c8b4e166a 100644
--- a/pylint/message/message_definition_store.py
+++ b/pylint/message/message_definition_store.py
@@ -72,7 +72,7 @@ class MessageDefinitionStore:
return repr([md.symbol for md in message_definitions])
def help_message(self, msgids_or_symbols: List[str]) -> None:
- """Display help messages for the given message identifiers"""
+ """Display help messages for the given message identifiers."""
for msgids_or_symbol in msgids_or_symbols:
try:
for message_definition in self.get_message_definitions(
@@ -99,7 +99,7 @@ class MessageDefinitionStore:
def find_emittable_messages(
self,
) -> Tuple[List[MessageDefinition], List[MessageDefinition]]:
- """Finds all emittable and non-emittable messages"""
+ """Finds all emittable and non-emittable messages."""
messages = sorted(self._messages_definitions.values(), key=lambda m: m.msgid)
emittable = []
non_emittable = []