# Create .gitignore in the root directory
cat > .gitignore << 'EOF'
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual environments
venv/
.venv/
env/
ENV/

# Environment variables
.env
.env.*
.env.local

# IDE files
.idea/
.vscode/
*.swp
*.swo

# Node modules
node_modules/

# Jupyter Notebook
.ipynb_checkpoints

# macOS
.DS_Store

# Lock files
# uv.lock  # Uncomment if you don't want to track lock files
EOF