Skip to main content

Pylint Plugin for enforcing boolean variable naming

Project description

Pylint Boolean Naming Checker

This is a pylint Checker to enforce variables with boolean results include common phrases implying True/False states.

Inspiration taken from here
Came across this [issue](https://github.com/pylint-dev/pylint/issues/9409) and thought it would be cool to try and do it myself.

How to Use

Install the package and then add it to the pylint runtime plugins.

# assuming git cloning until PyPI publish
git clone ...
cd pylint-boolean-naming
pip install .

# inside your code base
pylint --load-plugins pylint-boolean-naming \
    ... # other commands

Code Quality

Use pre-commit for general code quality and as a CI checker. This has hooks for: - MyPy - Ruff - Poetry

Contributing

We welcome all forms of contributions such as updates for documentation, new code, checking issues for duplicates or telling us that we can close them, confirming that issues still exist, creating issues because you found a bug or want a feature, etc. Everything is much appreciated!

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

pylint_boolean_naming-0.2.0.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

pylint_boolean_naming-0.2.0-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page