From b977c1f94772f006446553057984613c3f65f6b5 Mon Sep 17 00:00:00 2001 From: Ryan Snodgrass Date: Fri, 26 Dec 2025 19:15:37 -0500 Subject: [PATCH] chore: add pre-commit config for local lint enforcement Adds .pre-commit-config.yaml with: - golangci-lint v2.1.6 with 5m timeout - Basic file hygiene hooks (trailing whitespace, EOF fixer, YAML check) Install with: pre-commit install --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..091c03ac --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: https://github.com/golangci/golangci-lint + rev: v2.1.6 + hooks: + - id: golangci-lint + args: [--timeout=5m] + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files