mirror of
https://github.com/IgorKha/wireguard-mikrotik.git
synced 2025-08-05 02:34:46 +02:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# Read the docs here: https://pre-commit.com and http://jorisroovers.github.io/gitlint/
|
|
# Install hooks to your clone:
|
|
# $ pre-commit install --install-hooks
|
|
# and
|
|
# $ pre-commit install --install-hooks -t commit-msg
|
|
|
|
default_stages: [commit]
|
|
fail_fast: false
|
|
repos:
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/jorisroovers/gitlint
|
|
rev: v0.19.1
|
|
hooks:
|
|
- id: gitlint
|
|
name: Commit message check
|
|
language: python
|
|
entry: gitlint --msg-filename
|
|
stages: [commit-msg]
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.5
|
|
hooks:
|
|
- id: codespell
|
|
|
|
- repo: https://github.com/koalaman/shellcheck-precommit
|
|
rev: v0.9.0
|
|
hooks:
|
|
- id: shellcheck
|
|
args: ['--shell=bash', '--color=always']
|
|
files: '\.sh$'
|
|
types: ['file', 'text']
|
|
|
|
# kate: indent-width 2; tab-width 2;
|