Pylint plugin which disables checks for proper integration with invoke
Project description
Invoke Plugin for Pylint
This is a plugin for pylint which disables certain checks when using invoke.
Installation
pip install invoke-plugin-for-pylint
, that's it.
Usage
Add invoke_plugin_for_pylint
to the list of pylint plugins.
Disabled check
- unused-argument: Each invoke task needs a context argument even if not needed.
Therefore this plugin will find all tasks and suppress all
unused-argument
errors when related to the context argument
Configuration
If custom decorators for invoke tasks are used which wrap invoke.task
the
additional-invoke-task-decorators
option by checker invoke-plugin-for-pylint
can be used.
It's a csv list of names which indicate an invoke task.
Please note, that the names must be full qualified and reflect the name of the final function. For example, a decorator factory called "foo" in package "bar" which returns a function called "_inner", will result in the name "bar.foo._inner".
Example for the pyproject.toml:
[tool.pylint.invoke-plugin-for-pylint]
additional-invoke-task-decorators = [
"my_package.foo.make_task._inner",
"my_package.foo.make_other_task",
]
Build and Publish
This project uses setuptools
as the dependency management and build tool.
To publish a new release, follow these steps:
- Update the version in the
pyproject.toml
- Add an entry in the changelog
- Push a new tag like
vX.X.X
to trigger the release
Support, Feedback, Contributing
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
Code of Conduct
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Licensing
Copyright 2024 SAP SE or an SAP affiliate company and invoke-plugin-for-pylint contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.
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
Built Distribution
File details
Details for the file invoke_plugin_for_pylint-4.0.0.tar.gz
.
File metadata
- Download URL: invoke_plugin_for_pylint-4.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126c144332b204b623d86b029e83315fa4b1edcda95e98114e7af799f11d9f46 |
|
MD5 | de8ab5b102fc6f016439ad9a2a01c86c |
|
BLAKE2b-256 | 6c1fe179a69410c3219d92802cbd9aa4cddac8ca9f692f5841b33623ae10fac6 |
File details
Details for the file invoke_plugin_for_pylint-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: invoke_plugin_for_pylint-4.0.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a52abf3979eb1437438d069a9f8a56e86cfed93d17a308c3a274d010b794eefd |
|
MD5 | 7c3f5f83309c6a347ff48b08dbf0d3bc |
|
BLAKE2b-256 | 39e494e8589a785e4b4ac4d97a93c6b50341921a087e4d7557617e2be26e90b6 |