A pre commit linter for cpp, python and sh.
Project description
LG-Linter
A simple pre-commit linter for bash, python and c++.
Installation
Make sure you have clang-format
and shellcheck
installed. If not you can install them with
sudo apt update
sudo apt install -y clang-format shellcheck
Next install the linter with
pip3 install lg-linter
Note: This will install / overwrite the linter config files in your home directory.
How to use
Inside your git repo run
init_lg_linter
The linter is now active and will be run before every commit. If you want to remove the linter from your repo use
deinit_lg_linter
Pro Tip: If the linter complains about stuff which clearly is wrong you can override him with
git commit --no-verify
Use with care, with great power comes great responsibility!
Contact
For feature requests or bug reports please drop an issue at https://github.com/lgulich/lg-linter.
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
Hashes for lg_linter-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2697edcb8a45a4bec619dbb26e80d917654b1879b7c810e87a4cf47b7fe76ca2 |
|
MD5 | c765ddd6a638dbbd0e57a989238ef443 |
|
BLAKE2b-256 | 0f09297ee58938394f0d9b0abcb2828780f823e9faa5b7a8fb828c15f7eb0610 |