Skip to content

option to specify newline types #492

Closed

Description

@CanisHelix

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

Activity

  1. added
    type: feature
    on Mar 8, 2022
  2. Lee-W commented on Mar 13, 2022

    @Lee-W
    Member

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

  3. added 2 commits that reference this issue on Mar 13, 2022
    c2a5277
    db832b1
  4. woile commented on Mar 13, 2022

    @woile
    Member

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

  5. added 4 commits that reference this issue on Aug 10, 2022
    ff49fdc
    6c298d2
    4e5750c
    b135f76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions