Closed jameslamb closed 3 months ago
On #65, I observed linting failing in CI even though pre-commit run --all-files passed for me locally.
pre-commit run --all-files
Looks like that was because pre-commit isn't run in CI here. Instead, this third-party action is used:
pre-commit
https://github.com/NVIDIA/container-canary/blob/8f14a3e309788e5a1eb0901cf1559bf7bcfaf56f/.github/workflows/lint.yaml#L15-L16
This proposes the following:
golangci-lint
On #65, I observed linting failing in CI even though
pre-commit run --all-files
passed for me locally.Looks like that was because
pre-commit
isn't run in CI here. Instead, this third-party action is used:https://github.com/NVIDIA/container-canary/blob/8f14a3e309788e5a1eb0901cf1559bf7bcfaf56f/.github/workflows/lint.yaml#L15-L16
This proposes the following:
golangci-lint
in pre-commit configpre-commit
in CI