Skip to content

Commit

Permalink
Mark .pyc, .pyo and .pyd files as binary in .gitattributes
Browse files Browse the repository at this point in the history
Python files .pyc, .pyo and .pyd types are binary. Update
.gitattributes, copying from
https://github.com/alexkaratarakis/gitattributes/blob/master/Python.gitattributes
.

Signed-off-by: Rebecca Cran <[email protected]>
  • Loading branch information
bexcran committed May 12, 2023
1 parent 23d0890 commit 483e2c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyc text diff=python
*.pyd text diff=python
*.pyo text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyz text diff=python

# Binary files
#=============
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary

0 comments on commit 483e2c5

Please sign in to comment.