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.
Uncomment to enable pre-commit additional hook in .pre-commit-config.yaml.
pre-commit-hooks name-tests-test --pytest-test-first.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz.
File metadata
- Download URL: pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e64c33813c8231107d97be3d11a5ef0a50fed19210c3f695785c02b9638ceb2
|
|
| MD5 |
a7a8ae8ec9d86377e9558eb1ab6fe184
|
|
| BLAKE2b-256 |
ef2e0731169934fffe315749e462288500d621268395a84a86dba72ee38ac82d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyscaffoldext_pre_commit_ruff-1.1.1.tar.gz -
Subject digest:
5e64c33813c8231107d97be3d11a5ef0a50fed19210c3f695785c02b9638ceb2 - Sigstore transparency entry: 1280228651
- Sigstore integration time:
-
Permalink:
jfishe/pyscaffoldext-pre-commit-ruff@ad827bef45a75e3f21444ecc8f5d07a259f8fb75 -
Branch / Tag:
refs/tags/1.1.1 - Owner: https://github.com/jfishe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@ad827bef45a75e3f21444ecc8f5d07a259f8fb75 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl.
File metadata
- Download URL: pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0fb56ef96ec1eb85c622824fb462bda68f3eb1baaaa93970c8bce1baf9bdbd1
|
|
| MD5 |
7f0bdf6b4b689cb1402bb029d8e7e2f6
|
|
| BLAKE2b-256 |
f9f4af7baccb180615a0e70b4e8d7774e9796e198a120b65b79d03a4512a8b99
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyscaffoldext_pre_commit_ruff-1.1.1-py3-none-any.whl -
Subject digest:
a0fb56ef96ec1eb85c622824fb462bda68f3eb1baaaa93970c8bce1baf9bdbd1 - Sigstore transparency entry: 1280228652
- Sigstore integration time:
-
Permalink:
jfishe/pyscaffoldext-pre-commit-ruff@ad827bef45a75e3f21444ecc8f5d07a259f8fb75 -
Branch / Tag:
refs/tags/1.1.1 - Owner: https://github.com/jfishe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@ad827bef45a75e3f21444ecc8f5d07a259f8fb75 -
Trigger Event:
push
-
Statement type: