mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
Merge pull request #24 from campaul/requirements_txt_print
Print on requirements.txt failure
This commit is contained in:
commit
cf78558b9e
1 changed files with 6 additions and 1 deletions
|
|
@ -74,6 +74,11 @@ def fix_requirements_txt(argv=None):
|
|||
|
||||
for arg in args.filenames:
|
||||
with open(arg, 'rb+') as file_obj:
|
||||
retv |= fix_requirements(file_obj)
|
||||
ret_for_file = fix_requirements(file_obj)
|
||||
|
||||
if ret_for_file:
|
||||
print('Sorting {0}'.format(arg))
|
||||
|
||||
retv |= ret_for_file
|
||||
|
||||
return retv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue