teo-ruff-config-shared
Shared Ruff configuration for consistent Python linting and formatting
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
Metadata
Release files for teo-ruff-config-shared 0.1.0
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 |
|---|---|---|---|---|
| teo_ruff_config_shared-0.1.0.tar.gz | 6.7 kB | With provenance | Details for teo_ruff_config_shared-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teo_ruff_config_shared-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for teo_ruff_config_shared-0.1.0-py3-none-any.whl |
Total release size: 10.5 kB
Security for teo-ruff-config-shared 0.1.0
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.
Full provenance
Both files in this release have been 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.