Skip to content

Commit

Permalink
Added new PC hooks; simplified PC action
Browse files Browse the repository at this point in the history
  • Loading branch information
l50 committed Dec 16, 2023
1 parent b523c7b commit 23216c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
run: mage installDeps

- name: Run pre-commit
run: mage runPreCommit
run: pre-commit run --all-files
26 changes: 13 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
entry: yamllint --strict -c .hooks/linters/yamllint.yaml

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
rev: v4.0.0-alpha.6
hooks:
- id: prettier
files: \.(json|yaml|yml)$
Expand All @@ -43,6 +43,18 @@ repos:
- id: go-critic
- id: go-build
- id: go-mod-tidy

- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: script-must-have-extension
name: Ensure shell scripts end with .sh
types: [shell]
exclude: .bats
- id: shellcheck
- id: shfmt
# Configuration in .mdlrc and .hooks/linters/mdstyle.rb
- id: markdownlint

- repo: local
hooks:
Expand Down Expand Up @@ -74,15 +86,3 @@ repos:
language: script
entry: .hooks/generate-docs.sh
require_serial: true

- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: script-must-have-extension
name: Ensure shell scripts end with .sh
types: [shell]
exclude: .bats
- id: shellcheck
- id: shfmt
# Configuration in .mdlrc and .hooks/linters/mdstyle.rb
- id: markdownlint

0 comments on commit 23216c6

Please sign in to comment.