Skip to content

Commit

Permalink
Remove implicit concat in str shortened enough by black
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Apr 4, 2021
1 parent 5e5f242 commit a69755d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pylint/checkers/design_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
},
),
(
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
),
},
),
Expand Down
4 changes: 2 additions & 2 deletions pylint/checkers/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
},
),
(
Expand Down Expand Up @@ -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.",
},
),
)
Expand Down
1 change: 0 additions & 1 deletion pylint/config/option_manager_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ def read_config_file(self, config_file=None, verbose=None):
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]
Expand Down
2 changes: 1 addition & 1 deletion pylint/lint/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def __init__(
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)
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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=' '

Expand Down
4 changes: 1 addition & 3 deletions tests/unittest_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit a69755d

Please sign in to comment.