Skip to main content

A pre commit linter for cpp, python and sh.

Project description


Upload Python Package

A simple pre-commit linter for bash, python and c++.


Make sure you have pip3, clang-format and shellcheck installed. If not you can install them with

sudo apt update
sudo apt install -y python3-pip 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


The linter is now active and will be run before every commit. If you want to remove the linter from your repo use


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!


For feature requests or bug reports please drop an issue at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lg-linter-0.1.11.tar.gz (8.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page