aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-03-13 14:39:28 -0800
committerGravatar MarkKoz <[email protected]>2021-03-13 14:41:46 -0800
commit11f12a4b1cb8da70d6e454ff359a529bd097ba90 (patch)
treeb58a9d39fd81921bdb88d63dcac9314757c98408
parentRemoves Unused Roles & Channels (diff)
Use .gitattributes to normalise line endings on check-in
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--.gitattributes2
-rw-r--r--.pre-commit-config.yaml2
2 files changed, 2 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..3f3c4fd6
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+* text=auto
+*.png binary
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a66bf97c..6c94375c 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