文件

忽略 .git-blame-ignore-revs 的修订。点击 绕过 并查看正常的 Blame 视图。

30 行
872 B
YAML

2025-01-02 13:29:47 -08:00
default_stages: [pre-commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
2025-01-02 13:29:47 -08:00
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# Python import sorting and formatting
2025-08-08 15:32:30 -04:00
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. Check https://github.com/astral-sh/ruff-pre-commit#version-compatibility
2025-08-08 15:32:30 -04:00
# for the latest ruff version supported by the hook.
rev: v0.14.11
2025-01-02 13:29:47 -08:00
hooks:
2025-08-08 15:32:30 -04:00
- id: ruff-check
args: [--fix]
- id: ruff-format
# Local hook: hash consistency check
- repo: local
hooks:
- id: hash-check
name: Hash consistency check
entry: bash -lc 'cd projects/rocprofiler-compute && python3 src/utils/hash_checker.py'
language: system
pass_filenames: false
stages: [pre-commit]