repos:
- repo: https://gitcode.com/openUBMC/pre-commit-hooks
rev: 0.1.2
hooks:
- id: conventional-commit
- id: add-signoff-and-change-id
- id: check-sr
- id: check-json
- id: check-yaml
- id: clang-format
types_or: [c++, c]
- id: stylua-format
args: ['--config-path', '.stylua.toml']
exclude: '^gen/'
- id: luacheck
args: ['--config', '.luacheckrc']
exclude: '^gen/'
- repo: https://gitcode.com/gh_mirrors/pr/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: '(\.vscode/|multi-user\.target\.wants/)'
- id: end-of-file-fixer
exclude: '(\.vscode/|multi-user\.target\.wants/)'
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb, "1024"]
- id: check-case-conflict
- id: detect-private-key