# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# 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
*.rst    text
*.md     text diff=markdown
justfile text
*.toml   text
LICENSE  text
*.yaml   text
*.yml    text
*.po     text
*.tmpl   text
*.json   text
*.xml    text

# powershell
*.ps1      text eol=crlf
*.ps1x     text eol=crlf
*.psm1     text eol=crlf
*.psd1     text eol=crlf
*.ps1xml   text eol=crlf
*.pssc     text eol=crlf
*.psrc     text eol=crlf
*.cdxml    text eol=crlf

# Scripts
*.bash     text eol=lf
*.fish     text eol=lf
*.ksh      text eol=lf
*.sh       text eol=lf
*.zsh      text eol=lf
*.bat      text eol=crlf
*.cmd      text eol=crlf

# Archives
*.7z       binary
*.bz2      binary
*.gz       binary
*.rar      binary
*.tar      binary
*.tgz      binary
*.zip      binary
*.zst      binary

# Binary files
*.db       binary
*.pyc      binary export-ignore
*.pyo      binary export-ignore
*.pyd      binary
*.png      binary
*.jpg      binary
*.pdf      binary
*.svg      binary
*.gif      binary
*.mo       binary

# Documents
*.bibtex   text diff=bibtex
*.tex      text diff=tex
*.csv      text eol=crlf
*.txt      text
*.sql      text
*.patch    -text

.gitattributes export-ignore
.gitignore     export-ignore
