astral-sh / astral-sh/ruff

[Feature Request / Proposal] Upstream / preset / profile to preconfigure options

Open
#809 13 comments 19 reactions 0 assignees View on GitHub
configuration
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
1d 15h
Merged PRs (30d)
414

Description

Would something like preset or a profile be a feature you'd like to see?

for example:

```toml
[tool.ruff]
preset = "charliemarsh"
```

alternatively

```toml
[tool.ruff]
upstream = "https://.../ruff-profile.toml"
```

The idea would be to (1) add a new parameter [in the cli]() and [in the config]() , and (2) override defaults eg [after this](https://github.com/charliermarsh/ruff/blob/49559da54e013b46314c5fdd1473de4dcd04c8c3/src/settings/configuration.rs#L76) with the loaded contents of the profile / upstream file.

would a PR with mentioned implementation be accepted? Or would more discussion be required (eg as part of the eventual plugin system)? Or maybe it's just a non-goal?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the CLI and configuration entry points referenced in the issue, then inspect src/settings/configuration.rs around the linked defaults-handling location. Determine whether profile or upstream loading is an accepted goal and how it should interact with configuration defaults; done requires an agreed design before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.