Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/21c4a7c151d4f3b15c8fff7ebdb26dbf to your computer and use it in GitHub Desktop.
Save marcusramberg/21c4a7c151d4f3b15c8fff7ebdb26dbf to your computer and use it in GitHub Desktop.
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.1
hooks:
- id: check-github-workflows
- id: check-renovate
- id: check-cloudbuild
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: no-commit-to-branch
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.88.4
hooks:
- id: terraform_fmt
- id: terraform_tflint
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, fixup, docs, perf, refactor, test, security, chore]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck
exclude: ^images/cache/
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.3.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: 'v0.12.1'
hooks:
- id: markdownlint-cli2
args: [--fix]
additional_dependencies:
- markdownlint-cli2-formatter-pretty
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--write-changes]
additional_dependencies:
- tomli
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment