feat: add .gitattributes

Former-commit-id: 52d09d87e88acd997d82f109e028cb69310d4019 [formerly 0c52b6da0ddb4d90d6193a5e8b1a3d12ce8b1763]
Former-commit-id: e32ed4b3121d1fd76a7ec55677621a351f0b1655
This commit is contained in:
Laurent Fainsin 2022-09-02 16:09:18 +02:00
parent e1e74242de
commit 3727b30f53

30
.gitattributes vendored Normal file
View file

@ -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).