Skip to content

Commit

Permalink
(GH:apache#58) (ci)(refactor) gofmt check in pre-commit file
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Kumar Singh <[email protected]>
  • Loading branch information
singh1203 committed Jan 30, 2025
1 parent 6a0c4c4 commit 63b4432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ jobs:
go-version: '1.23'
cache: true
cache-dependency-path: go.sum
- name: Run gofmt
run: |
FILES=$(gofmt -l .)
if [ -n "$FILES" ]; then
echo "$FILES"
exit 1
fi
- name: Install pre-commit
run: |
python -m pip install pre-commit
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ repos:
rev: v0.13.0
hooks:
- id: yamlfmt
- repo: https://github.com/dnephin/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- id: go-imports
- id: go-lint

0 comments on commit 63b4432

Please sign in to comment.