repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: # - id: check-added-large-files # prevents giant files from being committed. - id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems. - id: check-merge-conflict # checks for files that contain merge conflict strings. - id: check-yaml # checks yaml files for parseable syntax. - id: detect-private-key # detects the presence of private keys. - id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline. - id: fix-byte-order-marker # removes utf-8 byte order marker. - id: mixed-line-ending # replaces or checks mixed line ending. - id: trailing-whitespace # trims trailing whitespace. - repo: https://github.com/cheshirekow/cmake-format-precommit rev: v0.6.13 hooks: - id: cmake-format - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.0.286 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] types_or: [python, pyi, jupyter] - repo: https://github.com/ambv/black rev: 23.7.0 hooks: - id: black