Files
winapps/.pre-commit-config.yaml
T

53 lines
1.4 KiB
YAML
Raw Normal View History

2024-09-09 17:50:55 +02:00
exclude: ^(.+)\.patch$
2024-05-23 18:28:12 +02:00
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: chmod
args: [ "775" ]
2024-05-23 18:28:12 +02:00
files: (\.sh|winapps)$
- id: forbid-crlf
exclude: '\.(bat|cmd|reg)$'
2024-05-23 18:28:12 +02:00
- id: remove-crlf
exclude: '\.(bat|cmd|reg)$'
2024-05-23 18:28:12 +02:00
- id: forbid-tabs
- id: remove-tabs
2024-07-17 00:07:49 +10:00
args: [ --whitespaces-count, "4" ]
2024-05-23 18:28:12 +02:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2025-09-08 16:44:46 +00:00
rev: v6.0.0
2024-05-23 18:28:12 +02:00
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
exclude: '\.(bat|cmd|reg)$'
2024-05-23 18:28:12 +02:00
- id: pretty-format-json
args: [ "--autofix", "--no-sort-keys" ]
2024-05-23 18:28:12 +02:00
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/scop/pre-commit-shfmt
2025-09-08 16:44:46 +00:00
rev: v3.12.0-2
2024-05-23 18:28:12 +02:00
hooks:
- id: shfmt
2024-07-17 00:07:49 +10:00
args: ["-i", "4", "-ci", "-s"]
2024-05-23 18:28:12 +02:00
2024-05-24 18:14:03 +02:00
- repo: https://github.com/shellcheck-py/shellcheck-py
2025-09-08 16:44:46 +00:00
rev: v0.11.0.1
2024-05-24 18:14:03 +02:00
hooks:
- id: shellcheck