Lint-only pipeline: run pre-commit on push to main; no build needed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016TPnPhJbaFEWFLgY6e9WbH
29 lines
865 B
YAML
29 lines
865 B
YAML
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$
|