Skip to content

Commit

Permalink
Adds pre-commit hook (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
cruftyoldsysadmin authored Dec 21, 2024
1 parent 94acff4 commit fbe82be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
- name: Install jsonlint
run: npm install -g jsonlint
- name: Run jsonlint
run: jsonlint profile.json
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-json
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer

0 comments on commit fbe82be

Please sign in to comment.