Nickineering's Default Ruff Config
A shareable Ruff starting config designed to get as much as possibly from Ruff quickly.
Usage
pip install ruff nickineering-ruff-config
Pip install this package, Ruff, and create a
ruff.toml or another Ruff supported configuration file in your project root.
Inside that file extend this config like so:
extend = "nickineering-ruff-base.toml"
# Override these settings, or add your own here
# For example:
[format]
docstring-code-format = false
You will also need to create a script to copy the file, since Ruff does not support extending from a package. This is a Poetry script which does that as an example:
[tool.poetry.scripts]
update-ruff-base = "nickineering_ruff_config:update_ruff_base"
You could then run it with poetry run update-ruff-base. This would need to be
re-run to install new versions of this package.
Finally, add the output to your .gitignore so you can rely only on the
package.
# Automatically updated configuration file from nickineering-ruff-config
nickineering-ruff-base.toml
It is also recommended to create a Makefile or other command runner to
document that the update-ruff-base command must be run when installing the
project and so that calls to Ruff run both the lint and format commands. An
example Makefile is below:
setup:
poetry install
poetry run update-ruff-base
lint:
ruff format
ruff check --fix
Publishing
A Github Action is automatically run deploying this code to PyPi when a new release is published in Github.
Metadata
Release files for nickineering-ruff-config 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nickineering_ruff_config-2.0.1.tar.gz | 3.5 kB | Without provenance | Details for nickineering_ruff_config-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nickineering_ruff_config-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for nickineering_ruff_config-2.0.1-py3-none-any.whl |
Total release size: 7.8 kB
Release files / nickineering_ruff_config-2.0.1.tar.gz
| Download URL | nickineering_ruff_config-2.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4e4b5744174bb9bf09f790d6dee75bd6ce1250d4002e98620b01df455955c62
|
|
BLAKE2b-256 checksum How to use checksums |
db6fcd7efbc2e38c521e1a421bd751a3da63382c092bc746e7c2a4647d1b6c2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Release files / nickineering_ruff_config-2.0.1-py3-none-any.whl
| Download URL | nickineering_ruff_config-2.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7e65b42689bb55d52140c90e3817996546ba0e81e12239b4b2a925895d39d49
|
|
BLAKE2b-256 checksum How to use checksums |
03f2abef18f2c91c43c4a5cfc2240e2790d319e5836b6d5945a10327ba8782be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Security for nickineering-ruff-config 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.