Skip to main content

Greenbone Logo

autohooks-plugin-ruff

PyPI release

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)

Source distribution for autohooks-plugin-ruff 25.3.1
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)

Table of built distributions (wheels) for autohooks-plugin-ruff 25.3.1
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page