Interactive Git commit message spellchecker
Project description
Git Spellcheck
Spelling mistakes in commit messages can easily occur, especially when using the CLI with git commit -m.
This tool aims to be quick and easy to set up, while also being lightweight. It automatically checks for spelling errors in commit message and provides an option to interactively fix them without rewriting the entire message.
How To Use
-
Install from PyPi:
pip install git-spellcheck
-
Either setup:
Global installation for all repositories:
git-spellcheck --install-globalOR local installation only for current repository
git-spellcheck --install-local -
Commit as usual
git commit -m "Fix autentcation bug in login modul"
If spelling mistakes are found, you'll see:
Git Spellcheck Warning: - "autentcation" (suggestions: authentication) - "modul" (suggestions: module, moduli, model, mosul, mogul, modal) Run `git-spellcheck --fix` to amend.``` -
Fix last commit interactively
git-spellcheck --fixInteractive mode lets you:
- See spelling suggestions
- Enter replacements
- Automatically amend your last commit
- "autentcation" suggestions: authentication Enter replacement (or press ENTER to skip): -
The commit is now ready to be pushed.
Behavior
When a commit is made, the subject line is scanned for misspelled words using pyspellchecker. If issues are found, suggestions are displayed.
The interactive mode allows reviewing each misspelled word and optionally replacing it, automatically amending the last commit with the corrected message.
Adding [skip-spell] to a commit message bypasses the spellcheck. The flag is automatically removed before finalising
the commit.
Requirements
- Python 3.7 or higher
- Git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_spellcheck-0.1.0.tar.gz.
File metadata
- Download URL: git_spellcheck-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83302a797310f5e45b473a31f30000f04922bb707db52a97e21b12ae8c186b7f
|
|
| MD5 |
cec49bdc2f3afdab02ef961c327f8ef2
|
|
| BLAKE2b-256 |
608351d0e0f296600da26904e66d57970a697905b46bf9b94799a7b1553401ce
|
File details
Details for the file git_spellcheck-0.1.0-py3-none-any.whl.
File metadata
- Download URL: git_spellcheck-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59521aa4ec4304f9fd8c09ac166dc830a1cd9cb50e5828971a8de80cdb04e90c
|
|
| MD5 |
c02f12b2c80bbef482e8ab73e4ec088f
|
|
| BLAKE2b-256 |
07d27a1ef35f411529201253c7df7b1c5dff47b06bb68a0c9c7337e7ec4ff271
|