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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cf7d2cdb95c98ff2763c73d48362df34c5074f83f97b65bd8be881006da15017
MD5 15e868e2bd034207bf01c681ef78c219
BLAKE2b-256 eff77739c7553ab54bfc37ac73e5f2c405b69ea36751bc1f4d63444c285a158a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscaffoldext_pre_commit_ruff-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84a6eb5695e5a7fa8a6636f6664c3b3ab3bf6270e6c78dc359b17a7d4262ab58
MD5 1512ef05d9e989fea1b34ae22ce08366
BLAKE2b-256 aa47892f4b54ecb272321af0231de6d9e5b6804473c5f111d21ea960fb1f6843

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscaffoldext_pre_commit_ruff-1.0.0-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