1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00

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.
This commit is contained in:
Scott Lowe 2021-06-10 14:57:25 +01:00
parent bba5b62c95
commit 492d0bc3bb

View File

@ -16,9 +16,9 @@
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary
*.pyo binary
# Jupyter notebook
*.ipynb text