gist/.pre-commit-config.yaml

46 lines
1.5 KiB
YAML
Raw Normal View History

ci:
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
# the frequency of unnecessary PRs.
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
2023-02-26 18:01:13 +01:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
2023-05-18 11:41:11 +02:00
- id: check-yaml
2023-02-26 18:01:13 +01:00
- 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
# I don't want to touch licenses or past association logs or Limnoria
# configuration exports.
exclude: ^LICENSES\/.*|LICENSE|associations\/.*|.*\.conf$$
# File types depending on trailing whitespace. Use identify-cli
exclude_types: [tsv, markdown]
- repo: https://github.com/thlorenz/doctoc
rev: v2.2.0
hooks:
- id: doctoc
args: [--update-only, --notitle]
2023-02-26 18:01:13 +01:00
- repo: https://github.com/pre-commit/mirrors-prettier
2023-04-27 06:51:42 +02:00
rev: "v3.0.0-alpha.9-for-vscode"
2023-02-26 18:01:13 +01:00
hooks:
- id: prettier
2023-05-18 11:41:11 +02:00
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-2
hooks:
- id: shfmt
#- id: shfmt-docker
2023-02-26 18:01:13 +01:00
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1"
hooks:
- id: editorconfig-checker
alias: ec
args: [-disable-max-line-length]