12345678910111213141516171819202122232425262728293031 |
- # See https://pre-commit.com for more information
- # See https://pre-commit.com/hooks.html for more hooks
-
- repos:
- - repo: meta # https://pre-commit.com/#meta-hooks
- hooks:
- - id: check-hooks-apply # ensures that the configured hooks apply to at least one file in the repository
- - id: check-useless-excludes # ensures that exclude directives apply to any file in the repository
- - id: identity # a simple hook which prints all arguments passed to it, useful for debugging
-
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.6.0
- hooks:
- - id: trailing-whitespace
- # - id: end-of-file-fixer
- - id: check-yaml
- - id: check-added-large-files
-
- - repo: https://github.com/sirwart/ripsecrets
- rev: v0.1.8 # Use latest tag on GitHub
- hooks:
- - id: ripsecrets-system
- # uncomment to check additional patterns
- # args:
- # - --additional-pattern 'mytoken*'
- # - --additional-pattern 'mykey*'
-
- - repo: https://github.com/gitleaks/gitleaks
- rev: v8.18.2
- hooks:
- - id: gitleaks-system
|