repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - id: check-merge-conflict - repo: https://github.com/psf/black-pre-commit-mirror rev: 26.3.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.5 hooks: - id: ruff args: ["--select=I", "--fix"] # Only run import-related rules - repo: https://github.com/pycqa/flake8 rev: 7.3.0 hooks: - id: flake8 args: ["--max-line-length=120", "--extend-ignore=E203,W503"] - repo: https://github.com/Yelp/detect-secrets rev: v1.5.0 hooks: - id: detect-secrets args: ['--baseline', '.secrets.baseline'] - repo: https://github.com/codespell-project/codespell rev: v2.4.2 hooks: - id: codespell args: ["--skip", "*.csv,*.html", "-L", "te,ans,sems,lsat,anc,strokin,lod,nam,ques,unparseable,rouge,oll,managin,expressio,re-declare"]