Skip to main content

Shared Ruff configuration for teo-garcia Python templates

Project description

teo-ruff-config-shared

Shared Ruff configuration for consistent Python linting and formatting

License: MIT PyPI Ruff

Part of the @teo-garcia/templates ecosystem


Settings

Setting Value
Target Python 3.12+
Line length 120
Quote style Double
Rule sets E, W, F, I, N, UP, B, S, A, C4, DTZ, T20, SIM, RUF
tests/ S101 ignored

Requirements

  • Python 3.12+
  • Ruff 0.8+

Usage

Install as a dev dependency:

uv add --dev teo-ruff-config-shared

Get the path to the installed config file:

uv run teo-ruff-config-path

Extend it in your pyproject.toml:

[tool.ruff]
extend = "/path/from/teo-ruff-config-path"

For a portable setup, add a Makefile target that generates ruff.extend.toml (gitignored):

ruff-config:
    @echo extend = \"$(shell uv run teo-ruff-config-path)\" > ruff.extend.toml

Then in pyproject.toml:

[tool.ruff]
extend = "ruff.extend.toml"
# framework-specific overrides below

Add ruff.extend.toml to .gitignore.


Related Packages

Package Description
teo-mypy-config-shared mypy type-checking settings
teo-pytest-config-shared pytest and coverage settings

License

MIT


Built by teo-garcia

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

teo_ruff_config_shared-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

teo_ruff_config_shared-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file teo_ruff_config_shared-0.1.0.tar.gz.

File metadata

  • Download URL: teo_ruff_config_shared-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teo_ruff_config_shared-0.1.0.tar.gz
Algorithm Hash digest
SHA256 610e3b620659e858867ec1f382114b91bd3d57b7fbd0ce76673e677ed190c1f9
MD5 d248bbca689afdec65a78d3671e7a4f9
BLAKE2b-256 f08aeef9887c48071fd32ddbf6174f6e24a9f64f776e2dbe1d675f4df0b69952

See more details on using hashes here.

Provenance

The following attestation bundles were made for teo_ruff_config_shared-0.1.0.tar.gz:

Publisher: publish.yml on teo-garcia/ruff-config-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teo_ruff_config_shared-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teo_ruff_config_shared-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bed8048294e6f12e967904c1348ef8ec5f6041a35304020b596d30c4572c950
MD5 082e7a6d658c5912f597e284be22a69c
BLAKE2b-256 54fd71842284bf1b32b0f6f5da7b210403b7795e50a716392e55c2584698ccfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for teo_ruff_config_shared-0.1.0-py3-none-any.whl:

Publisher: publish.yml on teo-garcia/ruff-config-shared

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