fmt: check gosimports during pre-commit hooks (#29520)

`gosimports` is the preferred style for module imports and it is
enforced via CI. I've found that things often manage to drift so I've
taken the liberty to update our pre-commit hook to verify our imports
formatting before a change is committed.

Along with updating the formatting helper I've also run `make fmt` to
resolve any formatting drift that managed to make it into the codebase.

Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
Ryan Cragun
2025-02-27 15:56:34 -07:00
committed by GitHub
parent d52340e10d
commit 69646127df
7 changed files with 63 additions and 43 deletions

View File

@@ -12,9 +12,8 @@ import (
"time"
ghclient "github.com/google/go-github/v68/github"
"github.com/spf13/cobra"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/github"
"github.com/spf13/cobra"
)
var listGithubWorkflowRuns = &github.ListWorkflowRunsReq{}