An autohooks plugin for python code linting via pylint
Project description
autohooks-plugin-pylint
An autohooks plugin for python code linting via pylint.
Installation
Install using pip
You can install the latest stable release of autohooks-plugin-pylint from the Python Package Index using pip:
python3 -m pip install autohooks-plugin-pylint
Install using poetry
It is highly encouraged to use poetry for maintaining your project's dependencies. Normally autohooks-plugin-pylint is installed as a development dependency.
poetry install
Usage
To activate the pylint autohooks plugin please add the following setting to your pyproject.toml file.
[tool.autohooks]
pre-commit = ["autohooks.plugins.pylint"]
By default, autohooks plugin pylint checks all files with a .py ending. If only files in a sub-directory or files with different endings should be formatted, just add the following setting:
[tool.autohooks]
pre-commit = ["autohooks.plugins.pylint"]
[tool.autohooks.plugins.pylint]
include = ['foo/*.py', '*.foo']
By default, autohooks plugin pylint executes pylint without any arguments and pylint settings are loaded from the .pylintrc file in the root directory of git repository. To change specific settings or to define a different pylint rc file the following plugin configuration can be used:
[tool.autohooks]
pre-commit = ["autohooks.plugins.pylint"]
[tool.autohooks.plugins.pylint]
arguments = ["--rcfile=/path/to/pylintrc", "-s", "n"]
Maintainer
This project is maintained by Greenbone AG.
Contributing
Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.
License
Copyright (C) 2019 - 2023 Greenbone AG
Licensed under the GNU General Public License v3.0 or later.
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 autohooks_plugin_pylint-23.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2f82ba89d28f772562794734eb37ae630b7a3011526e9cdfc13240865b0359 |
|
MD5 | 4d3924fa08447cc14e9d3b4badd14965 |
|
BLAKE2b-256 | 767a3cb38e68fd05a8183b3538513fd3c2252465bc21069e69ba6da5694f3860 |
Hashes for autohooks_plugin_pylint-23.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e1e60b81f48ca17d55a6660bff9aae0e9bd8cda2ec6f4ef1237b2f86475682 |
|
MD5 | 3b8a00fa67da0b28116fc3fec414d8e8 |
|
BLAKE2b-256 | 494874693c84d9d01296854c5e2c8ce5815eb23f44c361d2977ff45290b7b3b3 |