2019-02-04 21:03:29 +08:00
|
|
|
# Set the default behavior, which is to have git automatically determine
|
|
|
|
# whether a file is a text or binary, unless otherwise specified.
|
|
|
|
|
|
|
|
* text=auto
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Binary files
|
|
|
|
# ============
|
|
|
|
*.db binary
|
|
|
|
*.p binary
|
|
|
|
*.pkl binary
|
|
|
|
*.pyc binary
|
|
|
|
*.pyd binary
|
|
|
|
*.pyo binary
|
|
|
|
|
2019-02-14 13:05:52 +08:00
|
|
|
# Note: .db, .p, and .pkl files are associated with the python modules
|
|
|
|
# ``pickle``, ``dbm.*``, # ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
|
2019-02-04 21:03:29 +08:00
|
|
|
# (among others).
|