mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-05 09:42:53 +01:00
.pre-commit-config.yaml: sort according to README.md order & update comments
Of course the sample config keeps being an exception on top
This commit is contained in:
parent
c33b57694b
commit
88fff93c25
@ -35,26 +35,27 @@ repos:
|
|||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
# These are not from `pre-commit sample-config`
|
# These are not from `pre-commit sample-config`
|
||||||
- id: check-case-conflict
|
- 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-executables-have-shebangs
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-xml
|
- id: check-xml
|
||||||
#- id: debug-statements
|
#- id: debug-statements
|
||||||
|
- id: destroyed-symlinks
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: fix-byte-order-marker
|
||||||
#- id: fix-encoding-pragma
|
#- id: fix-encoding-pragma
|
||||||
#args: [--remove]
|
#args: [--remove]
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: [--fix=auto]
|
args: [--fix=auto]
|
||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
args:
|
args:
|
||||||
# --no-sort-keys
|
# Remember also: --no-sort-keys
|
||||||
|
# ASCII excludes the älphäbet amongst others
|
||||||
[--autofix, --no-ensure-ascii]
|
[--autofix, --no-ensure-ascii]
|
||||||
#- id: requirements-txt-fixer
|
#- id: requirements-txt-fixer
|
||||||
|
|
||||||
# Checks the ci: section on top of the file
|
# Checks the ci: section on top of the file
|
||||||
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
||||||
@ -94,13 +95,13 @@ repos:
|
|||||||
# - id: add-trailing-comma
|
# - id: add-trailing-comma
|
||||||
|
|
||||||
# GitHub Actions etc. configuration validity checking
|
# GitHub Actions etc. configuration validity checking
|
||||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
#- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
rev: 0.27.0
|
#rev: 0.27.0
|
||||||
hooks:
|
#hooks:
|
||||||
#- id: check-dependabot
|
#- id: check-dependabot
|
||||||
#- id: check-github-actions
|
#- id: check-github-actions
|
||||||
#- id: check-github-workflows
|
#- id: check-github-workflows
|
||||||
- id: check-gitlab-ci
|
#- id: check-gitlab-ci
|
||||||
|
|
||||||
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
|
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||||
# rev: 3.0.0
|
# rev: 3.0.0
|
||||||
@ -115,7 +116,8 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: reuse
|
- id: reuse
|
||||||
|
|
||||||
# prettier & editorconfig checker should probably be ran last
|
# Code formatters and especially editorconfig should probaly be last to
|
||||||
|
# ensure nothing breaks the rules.
|
||||||
|
|
||||||
# prettier, opinionated code formatter
|
# prettier, opinionated code formatter
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
Loading…
Reference in New Issue
Block a user