Skip to main content

Nickineering's Default Ruff Config

PyPI - Version

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.

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)

Source distribution for nickineering-ruff-config 2.0.1
File Size Uploaded
nickineering_ruff_config-2.0.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nickineering-ruff-config 2.0.1
File Interpreter ABI Platform
nickineering_ruff_config-2.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page