mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
Add pre-commit
This commit is contained in:
parent
766f32331f
commit
f67a3015ee
1 changed files with 29 additions and 0 deletions
29
.pre-commit-config.yaml
Normal file
29
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: check-ast
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-docstring-first
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: mixed-line-ending
|
||||||
|
- id: fix-byte-order-marker
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-yaml
|
||||||
|
args:
|
||||||
|
- "--allow-multiple-documents"
|
||||||
|
|
||||||
|
# See https://tmt.readthedocs.io/en/latest/guide.html#checking-data-validity
|
||||||
|
- repo: https://github.com/teemtee/tmt.git
|
||||||
|
rev: 1.32.2
|
||||||
|
hooks:
|
||||||
|
- id: tmt-lint
|
||||||
|
|
||||||
|
exclude: ".*\\.patch"
|
Loading…
Reference in a new issue