Files
rocm-systems/projects/rocprofiler-compute/.pre-commit-config.yaml
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 rader
872 B
YAML
Normal vy Historik

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]