Skip to content

Commit

Permalink
Revert "remove terraform from pre-commit-config since we don't use it"
Browse files Browse the repository at this point in the history
This reverts commit 6a159dc.
  • Loading branch information
BobanL committed Dec 26, 2024
1 parent d948bcb commit 7893e8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,25 @@ repos:
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: local
hooks:
# run `terraform fmt` if tf files are modified and terraform is installed
# when terraform is not installed, this check will succeed even if tf files
# would not pass the format check
- id: terraform-fmt
name: terraform-fmt
entry: bash -c 'if command -v terraform >/dev/null 2>&1; then terraform fmt -recursive -check operations; else exit 0; fi'
language: system
types:
- terraform
pass_filenames: false
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit hooks
autofix_prs: true
autoupdate_branch: ""
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: weekly
skip: [pretty-terraform-fmt]
submodules: false
exclude: examples/*

0 comments on commit 7893e8b

Please sign in to comment.