Skip to main content

Add a short description here!

Project description

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.

Codespell is added to pre-commit configuration in .pre-commit-config.yaml; uncomment to enable.

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.0.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f866cd0360bece4b0eb52b1c029afb92e58176b3959551498ca989eac8f0afe9
MD5 1dc8ec35da237644870d9d206bec4165
BLAKE2b-256 b683da802e6720124980690e8506cec2e1ee1dcd8aae3babcea82298dce0b995

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4a58a0210c73aaf3551dccbb0bf065b538035cab5575a4a95e840f69d0314b
MD5 07c10c5bda3aa1c71f85bf840f027fec
BLAKE2b-256 c59d7e8ce29016f3481644130004a66c45e3e6fb9c9400519f6c651d8b170878

See more details on using hashes here.

Provenance

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

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

Attestations:

Supported by

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