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
18 lines
357 B
YAML
18 lines
357 B
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
- name: pre-commit
|
|
image: git.unkin.net/unkin/almalinux9-gobuilder:20260606
|
|
commands:
|
|
- uvx pre-commit run --all-files
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 1
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 2
|