diff options
-rw-r--r-- | pylint/checkers/design_analysis.py | 2 | ||||
-rw-r--r-- | pylint/checkers/format.py | 2 | ||||
-rw-r--r-- | pylint/checkers/spelling.py | 4 | ||||
-rw-r--r-- | pylint/config/option_manager_mixin.py | 1 | ||||
-rw-r--r-- | pylint/lint/run.py | 2 | ||||
-rw-r--r-- | pylintrc | 2 | ||||
-rw-r--r-- | tests/unittest_reporting.py | 4 |
7 files changed, 7 insertions, 10 deletions
diff --git a/pylint/checkers/design_analysis.py b/pylint/checkers/design_analysis.py index f8c0b0621..e41b78ae4 100644 --- a/pylint/checkers/design_analysis.py +++ b/pylint/checkers/design_analysis.py @@ -212,7 +212,7 @@ class MisdesignChecker(BaseChecker): "default": 50, "type": "int", "metavar": "<int>", - "help": "Maximum number of statements in function / method " "body.", + "help": "Maximum number of statements in function / method body.", }, ), ( diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index 9031cfece..170253f43 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -259,7 +259,7 @@ class FormatChecker(BaseTokenChecker): "metavar": "<regexp>", "default": r"^\s*(# )?<?https?://\S+>?$", "help": ( - "Regexp for a line that is allowed to be longer than " "the limit." + "Regexp for a line that is allowed to be longer than the limit." ), }, ), diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 66cf53a52..95b46cda2 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -211,7 +211,7 @@ class SpellingChecker(BaseTokenChecker): "default": "", "type": "string", "metavar": "<comma separated words>", - "help": "List of comma separated words that " "should not be checked.", + "help": "List of comma separated words that should not be checked.", }, ), ( @@ -242,7 +242,7 @@ class SpellingChecker(BaseTokenChecker): "default": 4, "type": "int", "metavar": "N", - "help": "Limits count of emitted suggestions for " "spelling mistakes.", + "help": "Limits count of emitted suggestions for spelling mistakes.", }, ), ) diff --git a/pylint/config/option_manager_mixin.py b/pylint/config/option_manager_mixin.py index e4c677724..5ccdbb408 100644 --- a/pylint/config/option_manager_mixin.py +++ b/pylint/config/option_manager_mixin.py @@ -246,7 +246,6 @@ class OptionsManagerMixIn: break # already processed helpfunc = functools.partial(self.helpfunc, level=helplevel) - helpmsg = "%s verbose help." % " ".join(["more"] * helplevel) optdict = {"action": "callback", "callback": helpfunc, "help": helpmsg} provider = self.options_providers[0] diff --git a/pylint/lint/run.py b/pylint/lint/run.py index 63f67ead4..82ea51a09 100644 --- a/pylint/lint/run.py +++ b/pylint/lint/run.py @@ -344,7 +344,7 @@ group are mutually exclusive.", if linter.config.jobs > 1 or linter.config.jobs == 0: if multiprocessing is None: print( - "Multiprocessing library is missing, " "fallback to single process", + "Multiprocessing library is missing, fallback to single process", file=sys.stderr, ) linter.set_option("jobs", 1) @@ -159,7 +159,7 @@ no-space-check=trailing-comma,dict-separator # Maximum number of lines in a module max-module-lines=2000 -# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 # tab). indent-string=' ' diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py index c242d7366..beb3cd843 100644 --- a/tests/unittest_reporting.py +++ b/tests/unittest_reporting.py @@ -42,9 +42,7 @@ def test_template_option(linter): linter.set_current_module("0123") linter.add_message("C0301", line=1, args=(1, 2)) linter.add_message("line-too-long", line=2, args=(3, 4)) - assert ( - output.getvalue() == "************* Module 0123\n" "C0301:001\n" "C0301:002\n" - ) + assert output.getvalue() == "************* Module 0123\nC0301:001\nC0301:002\n" def test_parseable_output_deprecated(): |