Skip to content

Commit b7fef60

Browse files
committed
Ensured all committed text files have \n newlines
1 parent b57c22a commit b7fef60

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ensure all checked out text files have `\n` line endings
2+
* text=auto eol=lf

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repos:
1717
- id: end-of-file-fixer
1818
- id: fix-byte-order-marker
1919
- id: mixed-line-ending
20+
args: [--fix=lf]
2021
- id: trailing-whitespace
2122

2223
- repo: https://github.com/abravalheri/validate-pyproject
@@ -33,7 +34,7 @@ repos:
3334
extends: default,
3435
rules: {
3536
line-length: {max: 88, level: warning},
36-
new-lines: {type: platform},
37+
new-lines: {type: unix},
3738
truthy: disable,
3839
},
3940
}'

0 commit comments

Comments
 (0)