repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.5.0 # Use the ref you want to point at hooks: - id: trailing-whitespace types: [file, text] - id: end-of-file-fixer types: [python] - id: requirements-txt-fixer - id: mixed-line-ending types: [python] args: [--fix=no] - id: check-added-large-files args: [--maxkb=1024] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.12.4 hooks: - id: ruff types: [python] args: [--fix] - id: ruff-format types: [python] - repo: https://github.com/adrienverge/yamllint rev: v1.35.1 hooks: - id: yamllint - repo: https://github.com/codespell-project/codespell rev: v2.3.0 hooks: - id: codespell args: - "--ignore-words=.dict-speechbrain.txt" # skip jupyter notebook as there isn't a good way to only match inputs # at the moment. manually fixing up outputs would be a pain and we # cannot always expect to regex them out. - "--skip=*.ipynb" # for ipynb inline base64 -- although this isn't very useful since we # are disabling support for ipynb for now - "--ignore-regex='base64,.*?=='" additional_dependencies: - tomli