aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-03-13 14:33:10 -0800
committerGravatar MarkKoz <[email protected]>2021-03-13 14:33:10 -0800
commit466272875ef3020876a7f95b7e5c785ce8acd1f2 (patch)
treebec6c3fa7b8024fb9c88937f2fa87afad96f771d
parentmaster => main (diff)
Remove the mixed line endings pre-commit hook because it is obsolete.
Relying on git to handle line endings means contributors have more flexibility with which line endings they want to use on check-out. The settings in .gitattributes only impose which line endings will be used upon check-in (LF), which should not impact local development; git will still respect the core.eol and core.autocrlf settings.
-rw-r--r--.gitattributes1
-rw-r--r--.pre-commit-config.yaml2
2 files changed, 1 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..176a458
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 33921bd..b8f3312 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,8 +6,6 @@ repos:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- - id: mixed-line-ending
- args: [--fix=lf]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/pygrep-hooks