58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
# 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.4.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
args: ["--maxkb=600"]
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: check-yaml
|
|
- id: destroyed-symlinks
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
- id: forbid-submodules
|
|
- id: mixed-line-ending
|
|
- id: no-commit-to-branch
|
|
args: [
|
|
"--branch", "main"
|
|
]
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.32.0
|
|
hooks:
|
|
- id: yamllint
|
|
types: [file]
|
|
files: "^.*?\\.fmf$"
|
|
|
|
- repo: https://github.com/teemtee/tmt.git
|
|
rev: "1.26.0"
|
|
hooks:
|
|
- id: tmt-lint
|
|
|
|
# - repo: https://github.com/koalaman/shellcheck-precommit
|
|
# rev: v0.7.2
|
|
# hooks:
|
|
# - id: shellcheck
|
|
# args: ["--severity=warning"] # Optionally only show errors and warnings
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: shellcheck
|
|
name: shellcheck
|
|
description: Test shell scripts with shellcheck
|
|
entry: shellcheck
|
|
language: python
|
|
types: [shell]
|
|
require_serial: true # shellcheck can detect sourcing this way
|
|
|
|
- id: custom-lint-checks
|
|
name: custom-lint-checks
|
|
entry: custom-lint-checks.sh
|
|
language: script
|
|
pass_filenames: false
|