https://github.com/zefr0x/check_commit
not user friendly conventional commit linter
https://github.com/zefr0x/check_commit
conventional-commits linter pre-commit
Last synced: 10 months ago
JSON representation
not user friendly conventional commit linter
- Host: GitHub
- URL: https://github.com/zefr0x/check_commit
- Owner: zefr0x
- License: agpl-3.0
- Created: 2025-06-02T23:06:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-11T19:21:37.000Z (10 months ago)
- Last Synced: 2025-08-11T21:15:59.200Z (10 months ago)
- Topics: conventional-commits, linter, pre-commit
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
[](https://results.pre-commit.ci/latest/github/zefr0x/check_commit/main)
don't know why you need
[commitlint](https://github.com/conventional-changelog/commitlint) with 13000+
lines of code running on top of nodejs
this is just a simple regex with some python to check for
[Conventional Commits](https://www.conventionalcommits.org) standard
simple config
not user friendly
neither detailed error message nor handling, just read your docs (maybe read the
source code), it is your issue
## Usage
```
check_commit
```
When no input file is specified it will read from stdin.
For example:
```sh
check_commit 74 feat,fix Fixes,Refs ./.git/COMMIT_EDITMSG
# or
printf "feat(ui): add new button" | check_commit 74 feat,fix Fixes,Refs
```
### pre-commit hook
```yaml
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/zefr0x/check_commit
rev: v1.0.0
hooks:
- id: conventional-commit-message
stages: [commit-msg]
# To overwrite the default config:
args: [
"74",
"feat,fix,refac,deps,sty,lint,test,build,cid,dev,release,docs,i18n,data,revert",
"Fixes,Closes,Resolves,Refs,Signed-off-by,Co-authored-by",
]
```