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
File details
Details for the file autohooks_plugin_pylint-23.10.0.tar.gz
.
File metadata
- Download URL: autohooks_plugin_pylint-23.10.0.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2f82ba89d28f772562794734eb37ae630b7a3011526e9cdfc13240865b0359 |
|
MD5 | 4d3924fa08447cc14e9d3b4badd14965 |
|
BLAKE2b-256 | 767a3cb38e68fd05a8183b3538513fd3c2252465bc21069e69ba6da5694f3860 |
File details
Details for the file autohooks_plugin_pylint-23.10.0-py3-none-any.whl
.
File metadata
- Download URL: autohooks_plugin_pylint-23.10.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e1e60b81f48ca17d55a6660bff9aae0e9bd8cda2ec6f4ef1237b2f86475682 |
|
MD5 | 3b8a00fa67da0b28116fc3fec414d8e8 |
|
BLAKE2b-256 | 494874693c84d9d01296854c5e2c8ce5815eb23f44c361d2977ff45290b7b3b3 |