5298f6280e
This also came with a big rework of the configuration format that should make everything a bit less hacky to work with.
68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
default_install_hook_types:
|
|
- pre-commit
|
|
- commit-msg
|
|
|
|
default_stages:
|
|
- pre-commit
|
|
|
|
repos:
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|
|
|
|
- repo: builtin
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: check-executables-have-shebangs
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 0.37.1
|
|
hooks:
|
|
- id: check-jsonschema
|
|
files: ^talos/patches/.*\.y(a?)ml$
|
|
args:
|
|
[
|
|
"--schemafile",
|
|
"https://raw.githubusercontent.com/siderolabs/talos/refs/heads/release-1.11/website/content/v1.11/schemas/config.schema.json",
|
|
]
|
|
- id: check-jsonschema
|
|
files: ^talos/nodes/.*\.y(a?)ml$
|
|
args:
|
|
[
|
|
"--schemafile",
|
|
"https://git.huizinga.dev/infra/crete/raw/branch/main/schemas/node.json",
|
|
]
|
|
- id: check-jsonschema
|
|
files: ^talos/clusters/.*\.y(a?)ml$
|
|
args:
|
|
[
|
|
"--schemafile",
|
|
"https://git.huizinga.dev/infra/crete/raw/branch/main/schemas/cluster.json",
|
|
]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: prettier
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.40.0
|
|
hooks:
|
|
- id: typos
|
|
|
|
- repo: https://github.com/sirwart/ripsecrets
|
|
rev: v0.1.11
|
|
hooks:
|
|
- id: ripsecrets-system
|
|
|
|
- repo: https://github.com/crate-ci/committed
|
|
rev: v1.1.8
|
|
hooks:
|
|
- id: committed
|