Skip to content

Commit

Permalink
adding more go linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Lefaudeux committed Oct 30, 2024
1 parent 3e97f12 commit d57bda3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ jobs:
sudo apt-get update
sudo apt-get -y install libvips-dev
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

- name: Build
run: cd src/cmd/main && go build -v main.go

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/pre-commit.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ repos:
hooks:
- id: go-fmt
- id: go-imports
- id: golangci-lint
args: ["run", "src"]

0 comments on commit d57bda3

Please sign in to comment.