Skip to content

Commit 0308369

Browse files
committed
fix(checks): prevent implicit concatenation
1 parent 6729fd5 commit 0308369

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

proselint/checks/industrial_language/commercialese.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"thanking you in advance",
4141
"the undersigned",
4242
"this acknowledges your letter",
43-
r"ult\."
43+
r"ult\.",
4444
"we are pleased to note",
4545
"with regard to",
4646
"your favor has come to hand",

proselint/checks/misc/phrasal_adjectives.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
check_ly = Check(
2020
check_type=types.ExistenceSimple(pattern=r"\s[^\s-]+ly-"),
2121
path="misc.phrasal_adjectives.ly",
22-
message="No hyphen is necessary in phrasal adjectives with an adverb "
23-
"ending in -ly, unless the -ly adverb is part of a longer phrase.",
22+
message=(
23+
"No hyphen is necessary in phrasal adjectives with an adverb"
24+
" ending in -ly, unless the -ly adverb is part of a longer phrase."
25+
),
2426
offset=(1, 0),
2527
)
2628

proselint/checks/skunked_terms.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
)
3131
),
3232
path="skunked_terms",
33-
message="'{}' is a a skunked term - impossible to use without issue."
34-
"Find some other way to say it.",
33+
message=(
34+
"'{}' is a a skunked term - impossible to use without issue."
35+
" Find some other way to say it."
36+
),
3537
)
3638

3739
__register__ = (check,)

proselint/checks/weasel_words.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
check_very = Check(
2121
check_type=types.ExistenceSimple(pattern="very"),
2222
path="weasel_words.very",
23-
message="Substitute 'damn' every time you're "
24-
"inclined to write 'very'; your editor will delete it "
25-
"and the writing will be just as it should be.",
23+
message=(
24+
"Substitute 'damn' every time you're inclined to write 'very'; your"
25+
" editor will delete it and the writing will be just as it should be."
26+
),
2627
flags=CheckFlags(results_limit=1),
2728
)
2829

0 commit comments

Comments
 (0)