mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Improve logging for force line ending
This commit is contained in:
parent
a1e1421a99
commit
609d01178c
1 changed files with 3 additions and 2 deletions
|
|
@ -215,11 +215,12 @@ def _process_fix_auto(filenames):
|
|||
|
||||
|
||||
def _process_fix_force(filenames, line_ending_enum):
|
||||
logging.info('Force line ending to "%s"', line_ending_enum.str_print)
|
||||
|
||||
for filename in filenames:
|
||||
_convert_line_ending(filename, line_ending_enum.string)
|
||||
|
||||
logging.info('The file %s has been forced to "%s" line ending.',
|
||||
filename, line_ending_enum.str_print)
|
||||
|
||||
return 1
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue