diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..7f929f1 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,75 @@ +--- +default_install_hook_types: + - pre-commit + - commit-msg + +repos: + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v4.2.0 + hooks: + - id: conventional-pre-commit + stages: + - commit-msg + args: + - "--strict" + - repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 3.0.0 + hooks: + - id: shellcheck + stages: + - commit-msg + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: end-of-file-fixer + stages: + - commit-msg + - id: trailing-whitespace + stages: + - commit-msg + - id: mixed-line-ending + stages: + - commit-msg + - id: check-byte-order-marker + stages: + - commit-msg + - id: check-executables-have-shebangs + stages: + - commit-msg + - id: check-merge-conflict + stages: + - commit-msg + - id: check-symlinks + stages: + - commit-msg + - id: check-yaml + stages: + - commit-msg + files: .*\.(yaml|yml)$ + args: + - "--allow-multiple-documents" + - "--unsafe" + - id: debug-statements + - repo: https://github.com/psf/black + rev: 25.9.0 + hooks: + - id: black + stages: + - manual + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.37.1 + hooks: + - id: yamllint + stages: + - manual + args: + - "-c" + - ".yamllint" + - repo: https://github.com/ansible-community/ansible-lint + rev: v25.9.2 + hooks: + - id: ansible-lint + stages: + - manual + additional_dependencies: + - ansible