Skip to content

Commit

Permalink
chore: trivial clean ups (#222)
Browse files Browse the repository at this point in the history
* chore: add validate pre-commit hook

* chore: update gitignore
  • Loading branch information
nozaq authored Sep 19, 2021
1 parent ff0cae4 commit ce19437
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 13 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
.terraform.lock.hcl

#####################
# Default gitignore #
#####################

# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

.terraform.lock.hcl

# Crash log files
crash.log

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
#
# example.tfvars
*.tfvars

# Ignore override files as they are usually used to override resources locally and so
Expand All @@ -31,3 +35,6 @@ override.tf.json
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
rev: v1.51.0
hooks:
- id: terraform_fmt
- id: terraform_validate
- id: terraform_docs

0 comments on commit ce19437

Please sign in to comment.