chore: add pre-commit config and update CI pipeline #55

Merged
benvin merged 1 commits from benvin/pre-commit-config into master 2026-06-23 23:21:09 +10:00
Owner

Summary

  • New .pre-commit-config.yaml with standard Go hooks (gofmt, go vet, go mod tidy) plus file hygiene checks (trailing whitespace, end-of-file, yaml, large files, merge conflicts)
  • go vet runs as a local hook with ./... since the dnephin per-file hook doesn't work with Go module layouts
  • Woodpecker pre-commit pipeline updated to use almalinux9-gobuilder image with uvx pre-commit run --all-files
  • Pre-commit hooks installed into the repo
## Summary - New `.pre-commit-config.yaml` with standard Go hooks (gofmt, go vet, go mod tidy) plus file hygiene checks (trailing whitespace, end-of-file, yaml, large files, merge conflicts) - go vet runs as a local hook with `./...` since the dnephin per-file hook doesn't work with Go module layouts - Woodpecker pre-commit pipeline updated to use `almalinux9-gobuilder` image with `uvx pre-commit run --all-files` - Pre-commit hooks installed into the repo
unkinben added 1 commit 2026-06-23 23:17:41 +10:00
chore: add pre-commit config and update CI pipeline
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
75d58f31c9
- .pre-commit-config.yaml with standard Go hooks: gofmt, go vet,
  go mod tidy, plus trailing whitespace, end-of-file, yaml check,
  large file check, merge conflict check
- go vet runs as a local hook with ./... to work correctly with
  Go modules (the dnephin hook runs per-file which breaks)
- Woodpecker pre-commit pipeline updated to use almalinux9-gobuilder
  image with uvx pre-commit run --all-files
- Pre-commit hooks installed into the repo
benvin merged commit 74d9c0fa84 into master 2026-06-23 23:21:09 +10:00
benvin deleted branch benvin/pre-commit-config 2026-06-23 23:21:09 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#55