Skip to content

feat: add pre-commit for kai-scheduler#886

Draft
rich7420 wants to merge 1 commit intokai-scheduler:mainfrom
rich7420:precommit-all
Draft

feat: add pre-commit for kai-scheduler#886
rich7420 wants to merge 1 commit intokai-scheduler:mainfrom
rich7420:precommit-all

Conversation

@rich7420
Copy link
Copy Markdown
Contributor

Description

This PR adds pre-commit hooks to automatically run code quality checks before each commit, catching issues early and reducing CI failures.
Changes:
Adds .pre-commit-config.yaml with hooks for:

  • General file checks (whitespace, YAML/JSON validation, large files, merge conflicts, private key detection)
  • Go-specific checks (goimports formatting, go mod tidy, golangci-lint fast checks)

Adds documentation at docs/developer/pre-commit.md with installation and usage instructions
Updates CONTRIBUTING.md to reference the pre-commit documentation

Related Issues

Fixes #

Checklist

Note: Ensure your PR title follows the Conventional Commits format (e.g., feat(scheduler): add new feature)

  • Self-reviewed
  • Added/updated tests (if needed)
  • Updated documentation (if needed)

Breaking Changes

Additional Notes

@github-actions github-actions Bot added the stale label Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant