diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..4ac4725d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,27 @@ +# Basic .gitattributes for a python repo. + +# 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).