mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-04 15:11:07 +08:00
38 lines
982 B
YAML
38 lines
982 B
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.1.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: requirements-txt-fixer
|
|
- id: check-merge-conflict
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.26.3
|
|
hooks:
|
|
- id: yamllint
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
rev: v2.2.0
|
|
hooks:
|
|
- id: pretty-format-yaml
|
|
args: [--autofix, --indent, '2']
|
|
- repo: https://github.com/executablebooks/mdformat
|
|
rev: 0.7.13
|
|
hooks:
|
|
- id: mdformat
|
|
additional_dependencies:
|
|
- mdformat-gfm
|
|
- mdformat-black
|
|
- mdformat-shfmt
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: v0.8.0.3
|
|
hooks:
|
|
- id: shellcheck
|