30 satır
886 B
YAML
30 satır
886 B
YAML
default_stages: [pre-commit]
|
|
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
# Python import sorting and formatting
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version. Check https://github.com/astral-sh/ruff-pre-commit#version-compatibility
|
|
# for the latest ruff version supported by the hook.
|
|
rev: v0.12.12
|
|
hooks:
|
|
- 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 tools/config_management/hash_checker.py'
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-commit]
|