Skip to main content

Utilities and helpers for writing Pylint plugins

Project description

pylint-plugin-utils

Status

Build Status Code Style Pypi Package version

About

Utilities and helpers for writing Pylint plugins. This is not a direct Pylint plugin, but rather a set of tools and functions used by other plugins such as pylint-django and pylint-celery.

Testing

Create virtualenv:

python3.8 -m venv .pylint-plugin-utils
source .pylint-plugin-utils/bin/activate
pip install --upgrade pip setuptools

We use tox for running the test suite. You should be able to install it with:

pip install tox pytest

To run the test suite for a particular Python version, you can do:

tox -e py39

To run individual tests with tox, you can do:

tox -e py39 -- -k test_linter_should_be_pickleable

We use pytest for testing pylint, which you can use without using tox for a faster development cycle.

If you want to run tests on a specific portion of the code with pytest, pytest-cov and your local python version::

pip install pytest-cov
# Everything:
python3 -m pytest tests/ --cov=pylint_plugin_utils
coverage html

License

pylint-plugin-utils is available under the GPLv2 License.

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_plugin_utils-0.9.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

pylint_plugin_utils-0.9.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file pylint_plugin_utils-0.9.0.tar.gz.

File metadata

  • Download URL: pylint_plugin_utils-0.9.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pylint_plugin_utils-0.9.0.tar.gz
Algorithm Hash digest
SHA256 5468d763878a18d5cc4db46eaffdda14313b043c962a263a7d78151b90132055
MD5 e49bebb5d0e332434f5d8d0eb4f42f22
BLAKE2b-256 738524eaf5d0d078fc8799ae6d89faf326d6e4d27d862fc9a710a52ab07b7bb5

See more details on using hashes here.

File details

Details for the file pylint_plugin_utils-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_plugin_utils-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16e9b84e5326ba893a319a0323fcc8b4bcc9c71fc654fcabba0605596c673818
MD5 f669c3ca509ae7d4a0d431b94e3634f0
BLAKE2b-256 5ec9a3b871b0b590c49e38884af6dab58ab9711053bd5c39b8899b72e367b9f6

See more details on using hashes here.

Supported by

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