Skip to content

Switch pre-commit for prek#4777

Merged
dangra merged 11 commits intomasterfrom
prek
Mar 16, 2026
Merged

Switch pre-commit for prek#4777
dangra merged 11 commits intomasterfrom
prek

Conversation

@dangra
Copy link
Copy Markdown
Member

@dangra dangra commented Mar 16, 2026

Change Summary

What and Why: Switch pre-commit tooling from Python-based pre-commit to Go-native prek, and enable several new golangci-lint linters with all code fixed to comply.

How:

  • Replace pre-commit + Python setup in CI with j178/prek-action@v1
  • Enable 4 new linters: nlreturn, bodyclose, errchkjson, gocheckcompilerdirectives
  • Re-enable previously suppressed staticcheck/QF rules
  • Rename error variables to follow the ErrXxx convention (prep for errname linter)
  • Fix 444 files to comply with newly enabled linters (blank lines before returns, closing HTTP response bodies, wrapping JSON error checks, etc.)

Related to:


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

@dangra dangra marked this pull request as ready for review March 16, 2026 05:17
@dangra dangra merged commit 30a1c2c into master Mar 16, 2026
24 checks passed
@dangra dangra deleted the prek branch March 16, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant