mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Pre-commit compliance
This commit is contained in:
parent
25c06e6525
commit
19075371fa
1 changed files with 3 additions and 1 deletions
|
|
@ -33,7 +33,9 @@ def _process_filename_at_once(pattern, filename):
|
|||
match = pattern.search(f.read())
|
||||
if match:
|
||||
retv = 1
|
||||
output.write('{}:{}-{}:'.format(filename, match.start(), match.end()))
|
||||
output.write(
|
||||
'{}:{}-{}:'.format(filename, match.start(), match.end()),
|
||||
)
|
||||
output.write_line(match.group())
|
||||
return retv
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue