Skip to content

Comments

Add pre-commit hooks for gofmt and staticcheck#14

Merged
koba-e964 merged 1 commit intomainfrom
chore/pre-commit
Feb 1, 2026
Merged

Add pre-commit hooks for gofmt and staticcheck#14
koba-e964 merged 1 commit intomainfrom
chore/pre-commit

Conversation

@koba-e964
Copy link
Owner

Summary

  • add repo-pinned pre-commit hooks for gofmt and staticcheck
  • document pre-commit usage in README

Testing

  • pre-commit run --all-files

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds pre-commit tooling so contributors can automatically run Go formatting and linting checks locally, and documents how to use it.

Changes:

  • Add a repo-pinned .pre-commit-config.yaml with hooks for gofmt and staticcheck.
  • Document pre-commit installation and usage in README.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
README.md Documents local development workflow using pre-commit for gofmt and staticcheck.
.pre-commit-config.yaml Adds pinned pre-commit hooks to enforce formatting and linting before commits.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@koba-e964 koba-e964 merged commit 1920cc7 into main Feb 1, 2026
8 checks passed
@koba-e964 koba-e964 deleted the chore/pre-commit branch February 1, 2026 13:49
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