Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide additional recommended ruff rules that points at others #3356

Closed
qarmin opened this issue Mar 6, 2023 · 3 comments
Closed

Provide additional recommended ruff rules that points at others #3356

qarmin opened this issue Mar 6, 2023 · 3 comments
Labels
configuration Related to settings and configuration core Related to core functionality

Comments

@qarmin
Copy link

qarmin commented Mar 6, 2023

Currently ruff support ~500 rules in ~50 categories.

I tried to create a set of rules that would be as generic as possible, but it didn't work out very well for me(mostly probably because I only use Python for a few small projects).

I am currently using a hand-picked mix of F, E, SIM, A, B rules

I think rule sets pointing to other style rules like:

  • Ruff minimal (RM)
  • Ruff minimal autofixable (RMA)
  • Ruff recommended (RR)
  • Ruff recommended autofixable (RRA)
  • Ruff advanced (RA)
  • Ruff advanced autofixable (RAA)

would be useful, would work well without the need for configuration

@charliermarsh
Copy link
Member

Yeah I'd really like to support ESLint-like "presets" for this. It needs scoping-out...

In the meantime, maybe I'll mention that if I'm looking for a minimal setup, I tend to use something like this in my own projects:

[tool.ruff]
select = ["E", "F", "B", "UP"]

@charliermarsh charliermarsh added configuration Related to settings and configuration core Related to core functionality labels Mar 6, 2023
@charliermarsh
Copy link
Member

Created a Discussion around this: #3363

@charliermarsh
Copy link
Member

(Just closing in favor of the linked Discussion.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Related to settings and configuration core Related to core functionality
Projects
None yet
Development

No branches or pull requests

2 participants