1repos: 2 - repo: https://github.com/pre-commit/pre-commit-hooks 3 rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0 4 hooks: 5 - id: check-ast 6 - id: check-merge-conflict 7 - id: check-toml 8 - id: check-yaml 9 - id: end-of-file-fixer 10 - id: trailing-whitespace 11 - id: debug-statements 12 - repo: https://github.com/google/pyink 13 rev: 8383e5df6527cc1173183875258347be0a7e07c0 # frozen: 24.3.0 14 hooks: 15 - id: pyink 16 language_version: python3.12 17 args: [ 18 "--line-length=80", 19 "--preview", 20 "--pyink-indentation=2", 21 "--pyink-use-majority-quotes" 22 ] 23 - repo: https://github.com/astral-sh/ruff-pre-commit 24 rev: 8b5112a3b2ad121439a2092f8ff548c0d80f2514 # frozen: v0.6.1 25 hooks: 26 - id: ruff 27 - repo: https://github.com/pre-commit/mirrors-clang-format 28 rev: 05241dc3def184dba136e62d54ff57f1c8a497a9 # frozen: v17.0.6 29 hooks: 30 - id: clang-format 31 files: ml_dtypes/ 32