Skip to main content

PyScaffold extension to use Ruff with pre-commit.

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

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.0.2.tar.gz
Algorithm Hash digest
SHA256 718e66ca61f88699054bd8f57394545baf7cb2a3883dfd24a1345f78e2679ff5
MD5 e0dac7500db82d879e4f0d2d6888dfde
BLAKE2b-256 c551c92c3cfefdb624ff62e21f665bb0b1b92218809e44495e2c7ca2a4b1c69b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyscaffoldext_pre_commit_ruff-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e6ce9914dd92b759f4dca90be17dae76f38b67c883b7299b00838e4d6f2524d
MD5 817d60892779397b2d5eaa973ef8269a
BLAKE2b-256 c62b49188ccb618169b06d1e79206f7cf7566397ea6f696ed9f1223d7e2518c0

See more details on using hashes here.

Provenance

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