Add pre commit (#6)
Validate actions / validate (push) Successful in 3s

Reviewed-on: #6
Co-authored-by: peet <peet@noctrl.eu>
This commit was merged in pull request #6.
This commit is contained in:
peet authored and peet committed 2026-09-06 15:53:44 +02:00
1 parent cc11e264c6
commit c4e10c5044
4 files changed
+185

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- id: detect-private-key
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
exclude: ^gradle/wrapper/gradle-wrapper\.jar$
- id: trailing-whitespace
exclude: ^gradle/wrapper/gradle-wrapper\.jar$|^gradlew\.bat$
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: [ "--baseline", ".secrets.baseline" ]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
args: [ "-config-file", "actionlint.yaml" ]
files: ^\.gitea/workflows/.*\.ya?ml$