Replies: 4 comments 18 replies
-
|
Upvote this comment if you often use Ruff’s current default rules instead of overriding them entirely with |
Beta Was this translation helpful? Give feedback.
-
|
Respond to this comment if there are any rules included in this list that you would disable for your projects if this became the default rule set |
Beta Was this translation helpful? Give feedback.
-
|
Respond to this comment with any rules excluded from this list that you think should be enabled by default |
Beta Was this translation helpful? Give feedback.
-
|
Bit of a lazy post, but this is approximately the config we use at work: Config: DetailsI see a few ones you're suggesting that we explicitly disable, and vice versa |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We’ve been working on a new default rule set for Ruff with the goal of reducing the amount of configuration required to start using Ruff, while also capturing the benefits of rules that are currently disabled by default.
The proposed rule set is significantly larger than our current defaults, containing 436 rules, up from the 59 rules in the stable default set. It also expands beyond the primary focus on “correctness” rules in the current default set to include rules that are consistent with widely-accepted Python idioms or styles.
We’re hoping to release the new rules in preview this month, but even before that, we wanted to get some feedback on the rule set. You can find a simple
ruff.tomlfile containing the new rule set attached to this post and in the collapsed section below. We’d love any feedback you have, but I’m also including some more specific prompts in the discussion thread.Config file
ruff.txt (TOML file with the extension changed for GitHub's upload requirements)
You should be able to try this out in your own project with something like:
ruff check --isolated --no-cache --config "$(curl -L https://github.com/user-attachments/files/25394860/annotated.txt)"Beta Was this translation helpful? Give feedback.
All reactions