11repos :
2- # Pre-commit
2+ # Pre-commit hooks
33 - repo : https://github.com/pre-commit/pre-commit-hooks
4- rev : v4.3 .0 # Get the latest from https://github.com/pre-commit/pre-commit-hooks/releases
4+ rev : v4.5 .0 # See the release notes at https://github.com/pre-commit/pre-commit-hooks/releases
55 hooks :
66 - id : end-of-file-fixer
7+ name : end of file fixer
8+ description : Let's be sure that a new line has been added to the end of the file.
79 - id : trailing-whitespace
10+ name : trailing whitespace
11+ description : Automatically remove trailing whitespace before committing.
812 - id : check-merge-conflict
13+ name : check merge conflict
14+ description : Check for files that contain merge conflict strings.
915 stages : [commit]
1016 - id : check-executables-have-shebangs
17+ name : check executables have shebangs
18+ description : Checks that non-binary executables have a proper shebang.
1119 stages : [commit]
1220 - id : detect-private-key
21+ name : detect private key
22+ description : Checks for the existence of private keys.
1323 stages : [commit]
1424 - id : check-symlinks
25+ name : check symlinks
26+ description : Checks for symlinks which do not point to anything.
1527 stages : [commit]
1628 - id : mixed-line-ending
29+ name : mixed line ending
30+ description : Replaces or checks mixed line ending.
1731 stages : [commit]
1832 - id : check-yaml
1933 name : check yaml
@@ -24,17 +38,25 @@ repos:
2438
2539 # Terraform
2640 - repo : https://github.com/antonbabenko/pre-commit-terraform
27- rev : v1.75 .0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
41+ rev : v1.88 .0 # See the release notes at https://github.com/antonbabenko/pre-commit-terraform/releases
2842 hooks :
2943 - id : terraform_fmt
44+ name : terraform fmt
45+ description : Checks if the terraform code format is valid.
3046 stages : [commit]
3147 - id : terraform_tflint
48+ name : terraform tflint
49+ description : Automatic terraform linting.
3250 stages : [commit]
3351 exclude : (examples)
3452 - id : terraform_validate
53+ name : terraform validate
54+ description : Terraform code validator.
3555 stages : [commit]
3656 exclude : (examples)
3757 - id : terraform_docs
58+ name : terraform docs
59+ description : Generates terraform documentation.
3860 args :
3961 - --args=--config=.terraform-docs.yml
4062 stages : [commit]
0 commit comments