Files
learn-devops/.pre-commit-config.yaml
github-actions[bot] ea0d72d879 Add uv example (#30)
Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
2024-12-23 17:33:29 +03:00

47 lines
1.2 KiB
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: check-yaml
files: .*\.(yaml|yml)$
- id: destroyed-symlinks
- id: detect-private-key
- 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
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v24.12.2
hooks:
- id: ansible-lint
exclude: ^talos/
- repo: https://github.com/tofuutils/pre-commit-opentofu
rev: v2.1.0
hooks:
- id: tofu_fmt
- id: tofu_validate
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint
args: [--fix]
files: \.md$
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2', --offset, '2']
- id: pretty-format-toml
args: [--autofix]