# Auto detect text files and perform LF normalization
* 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

# Jupyter notebooks
*.ipynb  text eol=lf

# Text files
*.md     text eol=lf
*.txt    text eol=lf
*.json   text eol=lf

# Binary files
*.db     binary
*.p      binary
*.pkl    binary
*.pickle binary
*.pyc    binary
*.pyo    binary
*.pyd    binary

# Image files
*.png    binary
*.jpg    binary
*.jpeg   binary
*.gif    binary
*.tif    binary
*.tiff   binary
*.bmp    binary
*.webp   binary
*.svg    -text  # disable line ending conversions
*.pdf    binary
