mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
Upgrade add-trailing-comma to 0.4.1
This commit is contained in:
parent
ea227f024b
commit
e9aea74a77
11 changed files with 94 additions and 63 deletions
|
|
@ -22,16 +22,20 @@ TESTS = (
|
|||
# Docstring
|
||||
('""" Foo """', '""" Foo """', 0),
|
||||
(
|
||||
textwrap.dedent("""
|
||||
textwrap.dedent(
|
||||
"""
|
||||
x = " \\
|
||||
foo \\
|
||||
"\n
|
||||
"""),
|
||||
textwrap.dedent("""
|
||||
""",
|
||||
),
|
||||
textwrap.dedent(
|
||||
"""
|
||||
x = ' \\
|
||||
foo \\
|
||||
'\n
|
||||
"""),
|
||||
""",
|
||||
),
|
||||
1,
|
||||
),
|
||||
('"foo""bar"', "'foo''bar'", 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue