autohooks-plugin-ruff
An autohooks plugin for python code linting and formatting via ruff.
Installation
Install using pip
You can install the latest stable release of autohooks-plugin-ruff from the Python Package Index using pip:
python3 -m pip install --user autohooks-plugin-ruff
Install using poetry
It is highly encouraged to use poetry for maintaining your project's dependencies. Normally autohooks-plugin-ruff is installed as a development dependency.
poetry add --group dev autohooks-plugin-ruff
Usage
To activate the ruff autohooks plugin for linting please run
poetry run autohooks plugins add autohooks.plugins.ruff.check
or alternatively add the following setting to your pyproject.toml file.
[tool.autohooks]
pre-commit = ["autohooks.plugins.ruff.check"]
What the plugin actually does is ruff check . on git commit, so you should be
able to use the exact same settings as in ruff's docs.
To activate the ruff autohooks plugin for code formatting please run
poetry run autohooks plugins add autohooks.plugins.ruff.format
or alternatively add the following setting to your pyproject.toml file.
[tool.autohooks]
pre-commit = ["autohooks.plugins.ruff.format"]
What the plugin actually does is ruff format . on git commit, so you should be
able to use the exact same settings as in ruff's docs.
Notes
This project only runs ruff as a pre-commit hook, so, all features from ruff should be available too.
To activate this pre-commit hook remember to run this command before you start:
poetry run autohooks activate --mode poetry
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) 2023 - 2025 Greenbone AG
Licensed under the GNU General Public License v3.0 or later.
Metadata
Release files for autohooks-plugin-ruff 25.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autohooks_plugin_ruff-25.3.1.tar.gz | 33.5 kB | With provenance | Details for autohooks_plugin_ruff-25.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autohooks_plugin_ruff-25.3.1-py3-none-any.whl | Python 3 | none | any | Details for autohooks_plugin_ruff-25.3.1-py3-none-any.whl |
Total release size: 51.3 kB
Release files / autohooks_plugin_ruff-25.3.1.tar.gz
| Download URL | autohooks_plugin_ruff-25.3.1.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30a5dce803cef6a5813afa805a8e7354973abf34cbd8634c27bde225618ee22f
|
|
BLAKE2b-256 checksum How to use checksums |
f3df9445786458b17fc5bf970b36f47054046c7e81255cbee56f44bb487d4dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.
Transparency logRelease files / autohooks_plugin_ruff-25.3.1-py3-none-any.whl
| Download URL | autohooks_plugin_ruff-25.3.1-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ae465e72e063d9aef63309fabbb2c7b22edbf7da38a14ceaeeedf064784ca07
|
|
BLAKE2b-256 checksum How to use checksums |
17a223747da28701591ab0b038a9ac97a4245bdde634a635617b00e07ebeee2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.
Transparency logSecurity for autohooks-plugin-ruff 25.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for autohooks_plugin_ruff-25.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.