1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 08:18:50 -05:00
gitattributes/Python.gitattributes
Scott Lowe 492d0bc3bb ENH: Add export-ignore to compiled python files
Since Python uses just-in-time compilation, the compiled binaries
(.pyc and .pyo files) are not something you would want to include
in an archive of a python code base.

Hence we add an export-ignore attribute to these file extensions.
2021-06-10 15:04:56 +01:00

30 lines
626 B
Plaintext

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