mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
adjust error outputs to be more standardized
This commit is contained in:
parent
48c60be15b
commit
b13ff9b868
6 changed files with 22 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ TESTS = (
|
|||
b'from __future__ import unicode_literals\n'
|
||||
b'"foo"\n',
|
||||
1,
|
||||
'{filename}:2 Module docstring appears after code '
|
||||
'{filename}:2: Module docstring appears after code '
|
||||
'(code seen on line 1).\n',
|
||||
),
|
||||
# Test double docstring
|
||||
|
|
@ -26,7 +26,7 @@ TESTS = (
|
|||
b'from __future__ import absolute_import\n'
|
||||
b'"fake docstring"\n',
|
||||
1,
|
||||
'{filename}:3 Multiple module docstrings '
|
||||
'{filename}:3: Multiple module docstrings '
|
||||
'(first docstring on line 1).\n',
|
||||
),
|
||||
# Test multiple lines of code above
|
||||
|
|
@ -35,7 +35,7 @@ TESTS = (
|
|||
b'import sys\n'
|
||||
b'"docstring"\n',
|
||||
1,
|
||||
'{filename}:3 Module docstring appears after code '
|
||||
'{filename}:3: Module docstring appears after code '
|
||||
'(code seen on line 1).\n',
|
||||
),
|
||||
# String literals in expressions are ok.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue