Skip to content

Commit

Permalink
chore: Add pre-commit to auto-format when updating/generating data files
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Mar 24, 2024
1 parent 844f35e commit 8d7341e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 196 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
GH_TOKEN: ${{ secrets.TERRAFORM_MODULE_DATA }}
TERRAFORM_MODULE_DATA: ${{ secrets.TERRAFORM_MODULE_DATA }}

- name: Pre-commit
uses: pre-commit/[email protected]

- name: Commit & push
uses: EndBug/add-and-commit@v9
with:
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Loading

0 comments on commit 8d7341e

Please sign in to comment.