feat: add pre-commit configuration for linting and commit message enforcement (#117) #202

Merged
shoko merged 2 commits from fix/issue-117 into main 2026-04-07 08:02:57 +02:00
Owner
No description provided.
shoko added 1 commit 2026-04-07 05:51:55 +02:00
First-time contributor

is it possible to add pre commit hook so anyone who want to commit in this repo will have their pre commit hook to run and fix it for them. what do you think?

is it possible to add pre commit hook so anyone who want to commit in this repo will have their pre commit hook to run and fix it for them. what do you think?
Author
Owner

This PR adds the pre-commit configuration! Once merged, contributors can run pre-commit install to enable the hooks locally. The config includes:

  • shellcheck - Lints bash scripts
  • ruff - Lints and formats Python
  • commitizen - Enforces Conventional Commits format on commit messages

After merging, you would need to:

  1. Run pre-commit install to install the hooks
  2. On each git commit, the hooks will run automatically

Note: The hooks run locally on the developer's machine - they don't auto-fix on push, but they will catch issues before commit.

This PR adds the pre-commit configuration! Once merged, contributors can run `pre-commit install` to enable the hooks locally. The config includes: - **shellcheck** - Lints bash scripts - **ruff** - Lints and formats Python - **commitizen** - Enforces Conventional Commits format on commit messages After merging, you would need to: 1. Run `pre-commit install` to install the hooks 2. On each `git commit`, the hooks will run automatically Note: The hooks run locally on the developer's machine - they don't auto-fix on push, but they will catch issues before commit.
First-time contributor

can you write about it in CONTRIBUTING.md so anyone who contribute will know to run pre-commit install?

can you write about it in CONTRIBUTING.md so anyone who contribute will know to run pre-commit install?
shoko added 1 commit 2026-04-07 06:35:18 +02:00
Author
Owner

Done! Added a Pre-commit Hooks section to CONTRIBUTING.md with setup instructions and commit message format. The PR now includes both the hook configuration and documentation.

Done! Added a Pre-commit Hooks section to CONTRIBUTING.md with setup instructions and commit message format. The PR now includes both the hook configuration and documentation.
First-time contributor

lgtm

lgtm
shoko merged commit efcec4e122 into main 2026-04-07 08:02:57 +02:00
Sign in to join this conversation.