| default_stages: [pre-commit] | |
| repos: | |
| - repo: meta | |
| hooks: | |
| - id: check-hooks-apply | |
| - id: check-useless-excludes | |
| - repo: https://github.com/Warchant/pre-commit-buildifier | |
| rev: 0.1.5 | |
| hooks: | |
| - id: buildifier | |
| args: [--version, "v8.5.1"] | |
| - id: buildifier-lint | |
| args: [--version, "v8.5.1", --warnings=all] | |
| - repo: https://github.com/crate-ci/typos | |
| rev: v1.44.0 | |
| hooks: | |
| - id: typos | |
| exclude: | | |
| (?x)^( | |
| crate_universe/test_data | |
| ) | |
| exclude_types: | |
| - diff | |
| - repo: https://github.com/psf/black | |
| rev: 26.3.1 | |
| hooks: | |
| - id: black | |
| - repo: https://github.com/PyCQA/isort | |
| rev: 8.0.1 | |
| hooks: | |
| - id: isort | |
| args: [--profile, black] | |
| - repo: https://github.com/pre-commit/mirrors-clang-format | |
| # See supported types: https://github.com/pre-commit/mirrors-clang-format/blob/v14.0.6/.pre-commit-hooks.yaml#L6 | |
| rev: v22.1.1 | |
| hooks: | |
| - id: clang-format | |
| exclude_types: | |
| - json | |
| - javascript |