ci: linting

This commit is contained in:
kellervater
2025-04-10 23:03:21 +02:00
parent 18ed555e94
commit eb327aab0e
9 changed files with 107 additions and 13 deletions

39
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,39 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args:
- --maxkb=1000
- repo: https://github.com/detailyang/pre-commit-shell
rev: v1.0.6
hooks:
- id: shell-lint
args: [--external-sources]
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.0
hooks:
- id: yamllint
args: ['-c', '.lint/yamllint/.yamllint']
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
args:
[
"--line-length=121"
]
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.227.1
hooks:
- id: renovate-config-validator
args: ["--strict"]
language_version: 20.18.0 # workaround till https://github.com/renovatebot/pre-commit-hooks/issues/2460 is fixed
...