mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-26 05:09:23 +01:00
.pre-commit-config.yaml: put sample-config hooks on top for easier diffing and using as a template
This commit is contained in:
parent
7b4d791d07
commit
2022c99516
@ -17,15 +17,9 @@ repos:
|
|||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.5.0
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
# `pre-commit sample-config` puts these four on top:
|
||||||
- id: check-case-conflict
|
# trailing-whitespace, end-of-file-fixer, check-yaml,
|
||||||
- id: check-yaml
|
# check-added-large-files
|
||||||
- id: check-executables-have-shebangs
|
|
||||||
- id: check-shebang-scripts-are-executable
|
|
||||||
- id: destroyed-symlinks
|
|
||||||
- id: detect-private-key
|
|
||||||
- id: end-of-file-fixer
|
|
||||||
- id: fix-byte-order-marker
|
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
# Markdown allows double trailing space for forced line change. The
|
# Markdown allows double trailing space for forced line change. The
|
||||||
# hook appears to remove single ones.
|
# hook appears to remove single ones.
|
||||||
@ -36,6 +30,16 @@ repos:
|
|||||||
# and lack of it break things. Use identify-cli for figuring out more
|
# and lack of it break things. Use identify-cli for figuring out more
|
||||||
# types to add.
|
# types to add.
|
||||||
exclude_types: [svg, tsv]
|
exclude_types: [svg, tsv]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-added-large-files
|
||||||
|
# These are not from `pre-commit sample-config`
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: destroyed-symlinks
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: fix-byte-order-marker
|
||||||
#- id: check-docstring-first
|
#- id: check-docstring-first
|
||||||
#- id: check-json
|
#- id: check-json
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
Loading…
Reference in New Issue
Block a user