[precommit] Default EOL as LF (and CRLF for .cmd and .ps1 files)

This commit is contained in:
David Capello 2024-12-10 22:38:57 -03:00
parent 67a971618d
commit a154faf3f9

View File

@ -6,6 +6,12 @@ repos:
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: [ --fix=lf ]
exclude: '.*\.cmd$|.*\.ps1$'
- id: mixed-line-ending
args: [ --fix=crlf ]
files: '.*\.cmd$|.*\.ps1$'
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5