commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

option to specify newline types

Open CanisHelix opened this issue 2 years ago • 2 comments

Description

I have pre-commit hooks to enforce LF line endings, this fails on every commitizen commit as it writes CRLF on windows. An option to configure this would be good.

Possible Solution

Hacky, but I have customized my local commitizen and found all instances of open and added newline='\n' to them if they are w opens. And option in the .cz.yaml to specify this would be the optimal method.

Additional context

No response

Additional context

No response

CanisHelix avatar Mar 08 '22 13:03 CanisHelix

@Woile I'm good with it and think it might be helpful. What do you think?

Lee-W avatar Mar 13 '22 03:03 Lee-W

I'm also good with it as an option in the configuration

woile avatar Mar 13 '22 10:03 woile