init: gitattributes

This commit is contained in:
Laureηt 2021-10-30 12:51:26 +02:00
parent 17fd35ac37
commit 2466ad6d97
No known key found for this signature in database
GPG key ID: D88C6B294FD40994

29
.gitattributes vendored Normal file
View file

@ -0,0 +1,29 @@
# 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).