summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-04 10:40:40 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-04 10:49:08 +0200
commita69755d79a626e21794dc2c4233fd5af1233b807 (patch)
tree5aa193682d951eb2d6b11e0298b7cb4a3333d6dc
parent5e5f2427c8aa62a69d6bce9b56233a03e2d56c43 (diff)
downloadpylint-git-a69755d79a626e21794dc2c4233fd5af1233b807.tar.gz
Remove implicit concat in str shortened enough by black
-rw-r--r--pylint/checkers/design_analysis.py2
-rw-r--r--pylint/checkers/format.py2
-rw-r--r--pylint/checkers/spelling.py4
-rw-r--r--pylint/config/option_manager_mixin.py1
-rw-r--r--pylint/lint/run.py2
-rw-r--r--pylintrc2
-rw-r--r--tests/unittest_reporting.py4
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)
diff --git a/pylintrc b/pylintrc
index 9a6361852..a9be565fe 100644
--- a/pylintrc
+++ b/pylintrc
@@ -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():