repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-json - id: check-added-large-files - id: debug-statements # Catches pdb.set_trace() calls - repo: https://github.com/psf/black rev: 24.1.0 hooks: - id: black language_version: python3 - repo: https://github.com/PyCQA/flake8 rev: 7.0.0 hooks: - id: flake8 additional_dependencies: [flake8-docstrings] exclude: ^tests/ args: [--max-line-length=100, --extend-ignore=E203,E501] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.9 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] # Optional: Security linting (detect hardcoded secrets) - repo: https://github.com/Yelp/detect-secrets rev: v1.4.0 hooks: - id: detect-secrets args: ['--baseline', '.secrets.baseline'] exclude: ^tests/