From 3727b30f53fc970a0118dd5c970e69d829620f99 Mon Sep 17 00:00:00 2001 From: Laurent Fainsin Date: Fri, 2 Sep 2022 16:09:18 +0200 Subject: [PATCH] feat: add .gitattributes Former-commit-id: 52d09d87e88acd997d82f109e028cb69310d4019 [formerly 0c52b6da0ddb4d90d6193a5e8b1a3d12ce8b1763] Former-commit-id: e32ed4b3121d1fd76a7ec55677621a351f0b1655 --- .gitattributes | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..06e9508 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,30 @@ +# https://github.com/alexkaratarakis/gitattributes/blob/master/Python.gitattributes +# Basic .gitattributes for a python repo. + +# Source files +# ============ +*.pxd text diff=python +*.py text diff=python +*.py3 text diff=python +*.pyw text diff=python +*.pyx text diff=python +*.pyz text diff=python +*.pyi text diff=python + +# Binary files +# ============ +*.db binary +*.p binary +*.pkl binary +*.pickle binary +*.pyc binary export-ignore +*.pyo binary export-ignore +*.pyd binary + +# Jupyter notebook +*.ipynb text + +# Note: .db, .p, and .pkl files are associated +# with the python modules ``pickle``, ``dbm.*``, +# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb`` +# (among others).