repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0 hooks: - id: check-ast - id: check-merge-conflict - id: check-toml - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - id: debug-statements - repo: https://github.com/google/pyink rev: 8383e5df6527cc1173183875258347be0a7e07c0 # frozen: 24.3.0 hooks: - id: pyink language_version: python3.12 args: [ "--line-length=80", "--preview", "--pyink-indentation=2", "--pyink-use-majority-quotes" ] - repo: https://github.com/astral-sh/ruff-pre-commit rev: 8b5112a3b2ad121439a2092f8ff548c0d80f2514 # frozen: v0.6.1 hooks: - id: ruff - repo: https://github.com/pre-commit/mirrors-clang-format rev: 05241dc3def184dba136e62d54ff57f1c8a497a9 # frozen: v17.0.6 hooks: - id: clang-format files: ml_dtypes/