Shared Ruff configuration for teo-garcia Python templates
Project description
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
Project details
Release history Release notifications | RSS feed
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