Skip to main content

PyScaffold extension to use Ruff with pre-commit.

Project description

Test and Publish Python 🐍 distribution 📦 to PyPI and TestPyPI PyPI Version Python Versions Documentation Status pre-commit enabled Ruff Coverage Status

PyScaffold extension to use the Ruff Linter and Ruff Formatter in place of the Pre Commit Extension, putup --pre-commit defaults flake8 and isort.

The ruff configuration is added to pyproject.toml because ruff does not support setup.cfg. Some Ruff Linter recommended settings are commented out, for consistency with PyScaffold’s flake8 settings.

Uncomment to enable pre-commit additional hook in .pre-commit-config.yaml.

Mypy settings are added to setup.cfg.

Usage

Just install this package with pip install pyscaffoldext-pre-commit-ruff and note that putup -h shows a new option --pre-commit-ruff. Use this flag to use the Ruff Linter and Ruff Formatter in place of putup --pre-commit defaults flake8 and isort.

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

uv tool install pre-commit
cd pyscaffoldext-pre-commit-ruff
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz.

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5e64c33813c8231107d97be3d11a5ef0a50fed19210c3f695785c02b9638ceb2
MD5 a7a8ae8ec9d86377e9558eb1ab6fe184
BLAKE2b-256 ef2e0731169934fffe315749e462288500d621268395a84a86dba72ee38ac82d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz:

Publisher: publish-package.yml on jfishe/pyscaffoldext-pre-commit-ruff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0fb56ef96ec1eb85c622824fb462bda68f3eb1baaaa93970c8bce1baf9bdbd1
MD5 7f0bdf6b4b689cb1402bb029d8e7e2f6
BLAKE2b-256 f9f4af7baccb180615a0e70b4e8d7774e9796e198a120b65b79d03a4512a8b99

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl:

Publisher: publish-package.yml on jfishe/pyscaffoldext-pre-commit-ruff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page