From a0583f40c1a3d942d52eadb1274f31040325ff09 Mon Sep 17 00:00:00 2001 From: WuonParticle Date: Mon, 5 May 2025 10:01:05 -0600 Subject: [PATCH 1/2] Create git attributes file to enforce future LF line endings. --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..ffabddc3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Set default behavior to automatically normalize line endings with LF +* text=auto eol=lf + +# Special diff drivers +*.py diff=python +*.md diff=markdown From 9caae2c4faa529933883981fb19df5e493dd53b1 Mon Sep 17 00:00:00 2001 From: WuonParticle <69517666+WuonParticle@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:20:30 -0700 Subject: [PATCH 2/2] Update .gitattributes to be more specific. --- .gitattributes | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index ffabddc3..4ac4725d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,27 @@ -# Set default behavior to automatically normalize line endings with LF -* text=auto eol=lf +# Basic .gitattributes for a python repo. -# Special diff drivers -*.py diff=python -*.md diff=markdown +# Source files +# ============ +*.pxd text diff=python eol=lf +*.py text diff=python eol=lf +*.py3 text diff=python eol=lf +*.pyw text diff=python eol=lf +*.pyx text diff=python eol=lf +*.pyz text diff=python eol=lf +*.pyi text diff=python eol=lf + +# Binary files +# ============ +*.db binary +*.p binary +*.pkl binary +*.pickle binary +*.pyd binary + +# Jupyter notebook +*.ipynb text eol=lf + +# Note: .db, .p, and .pkl files are associated +# with the python modules ``pickle``, ``dbm.*``, +# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb`` +# (among others).