# Pre-commit hooks configuration # Install: pre-commit install # Run manually: pre-commit run --all-files repos: # Ruff - Python linting and formatting - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.8.6 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format # General file checks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: check-yaml args: [--unsafe] # Allow custom YAML tags (e.g., for docker-compose) - id: check-toml - id: check-json - id: end-of-file-fixer - id: trailing-whitespace - id: check-added-large-files args: [--maxkb=1000] - id: check-merge-conflict - id: detect-private-key # Type checking (optional - uncomment when ready) # - repo: https://github.com/pre-commit/mirrors-mypy # rev: v1.13.0 # hooks: # - id: mypy # additional_dependencies: []