75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
|
exclude: |
|
||
|
(?x)
|
||
|
.drawio$|
|
||
|
^test/.*.json$|
|
||
|
tsconfig.json$|
|
||
|
.diff$|
|
||
|
.patch$|
|
||
|
.min.|
|
||
|
^states/common/setup/files/01-netzbegruenung.sh$|
|
||
|
^states/common/setup/files/01-verdigado.sh$
|
||
|
repos:
|
||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||
|
rev: v4.6.0
|
||
|
hooks:
|
||
|
- id: check-added-large-files
|
||
|
- id: check-case-conflict
|
||
|
- id: check-executables-have-shebangs
|
||
|
- id: check-json
|
||
|
- id: check-merge-conflict
|
||
|
- id: check-symlinks
|
||
|
- id: check-xml
|
||
|
- id: check-yaml
|
||
|
- id: double-quote-string-fixer
|
||
|
- id: end-of-file-fixer
|
||
|
- id: fix-byte-order-marker
|
||
|
- id: mixed-line-ending
|
||
|
- id: no-commit-to-branch
|
||
|
- id: requirements-txt-fixer
|
||
|
- id: trailing-whitespace
|
||
|
args: [--markdown-linebreak-ext=md]
|
||
|
- repo: https://github.com/warpnet/salt-lint
|
||
|
rev: v0.9.2
|
||
|
hooks:
|
||
|
- id: salt-lint
|
||
|
- repo: https://github.com/markdownlint/markdownlint
|
||
|
rev: v0.13.0
|
||
|
hooks:
|
||
|
- id: markdownlint
|
||
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||
|
rev: v0.9.0.5
|
||
|
hooks:
|
||
|
- id: shellcheck
|
||
|
- repo: local
|
||
|
hooks:
|
||
|
- id: check-ssh-keys
|
||
|
name: check SSH public keys in user pillars
|
||
|
entry: python build/check-ssh-keys.py
|
||
|
language: python
|
||
|
files: ^pillars/users/.+\.sls$
|
||
|
additional_dependencies: ['pyyaml==6.0.1'] # Renovate can't parse it, yet https://github.com/renovatebot/renovate/issues/20780 # TODO
|
||
|
|
||
|
- id: check-codeowners
|
||
|
name: check CODEOWNERS for alphabetical comment order
|
||
|
entry: python build/check-alphabetical-comments.py
|
||
|
language: python
|
||
|
files: CODEOWNERS
|
||
|
|
||
|
- id: prettier # Copied from https://github.com/pre-commit/mirrors-prettier/ instead of referencing it to not rely on their published Prettier versions
|
||
|
name: Prettier
|
||
|
description: ''
|
||
|
entry: prettier --write --ignore-unknown
|
||
|
language: node
|
||
|
'types': [text]
|
||
|
args: []
|
||
|
require_serial: false
|
||
|
additional_dependencies: ['prettier@3'] # Renovate can't parse this, either. Unspecific to prevent local installs, when global installations are available
|
||
|
minimum_pre_commit_version: '0'
|
||
|
|
||
|
- id: git-diff
|
||
|
name: git diff
|
||
|
entry: git diff --exit-code
|
||
|
language: system
|
||
|
pass_filenames: false
|
||
|
always_run: true
|