diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-05-23 15:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 15:36:55 +0200 |
commit | b4f5c4482e37045d75188bc3087196a70cdbe575 (patch) | |
tree | 7f40ea54768d6725735ccc6155baeffd387a59f0 /pylint/utils | |
parent | ff510c8d953e67bf57a2f49914257974a6d45712 (diff) | |
download | pylint-git-b4f5c4482e37045d75188bc3087196a70cdbe575.tar.gz |
Some initial line wrapping of docstrings (#6672)
Diffstat (limited to 'pylint/utils')
-rw-r--r-- | pylint/utils/file_state.py | 4 | ||||
-rw-r--r-- | pylint/utils/linterstats.py | 12 | ||||
-rw-r--r-- | pylint/utils/utils.py | 4 |
3 files changed, 15 insertions, 5 deletions
diff --git a/pylint/utils/file_state.py b/pylint/utils/file_state.py index 43fca9b07..acd59d648 100644 --- a/pylint/utils/file_state.py +++ b/pylint/utils/file_state.py @@ -68,7 +68,9 @@ class FileState: self._effective_max_line_number = None self._msgs_store = msg_store self._is_base_filestate = is_base_filestate - """If this FileState is the base state made during initialization of PyLinter.""" + """If this FileState is the base state made during initialization of + PyLinter. + """ def collect_block_lines( self, msgs_store: MessageDefinitionStore, module_node: nodes.Module diff --git a/pylint/utils/linterstats.py b/pylint/utils/linterstats.py index ad749be24..11338850c 100644 --- a/pylint/utils/linterstats.py +++ b/pylint/utils/linterstats.py @@ -160,7 +160,9 @@ class LinterStats: {self.percent_duplicated_lines}""" def init_single_module(self, module_name: str) -> None: - """Use through PyLinter.set_current_module so PyLinter.current_name is consistent.""" + """Use through PyLinter.set_current_module so PyLinter.current_name is + consistent. + """ self.by_module[module_name] = ModuleStats( convention=0, error=0, fatal=0, info=0, refactor=0, statement=0, warning=0 ) @@ -301,7 +303,9 @@ class LinterStats: def increase_single_module_message_count( self, modname: str, type_name: MessageTypesFullName, increase: int ) -> None: - """Increase the message type count of an individual message type of a module.""" + """Increase the message type count of an individual message type of a + module. + """ self.by_module[modname][type_name] += increase def reset_message_count(self) -> None: @@ -315,7 +319,9 @@ class LinterStats: def merge_stats(stats: list[LinterStats]) -> LinterStats: - """Used to merge multiple stats objects into a new one when pylint is run in parallel mode.""" + """Used to merge multiple stats objects into a new one when pylint is run in + parallel mode. + """ merged = LinterStats() for stat in stats: merged.bad_names["argument"] += stat.bad_names["argument"] diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 4bfced3a9..6a4277642 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -132,7 +132,9 @@ def get_module_and_frameid(node: nodes.NodeNG) -> tuple[str, str]: def get_rst_title(title: str, character: str) -> str: - """Permit to get a title formatted as ReStructuredText test (underlined with a chosen character).""" + """Permit to get a title formatted as ReStructuredText test (underlined with a + chosen character). + """ return f"{title}\n{character * len(title)}\n" |