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

disable formatting lints (a single option) #10225

Closed
KDruzhkin opened this issue Mar 4, 2024 · 2 comments
Closed

disable formatting lints (a single option) #10225

KDruzhkin opened this issue Mar 4, 2024 · 2 comments
Labels
configuration Related to settings and configuration rule-selection Related to enabling or disabling rules

Comments

@KDruzhkin
Copy link

KDruzhkin commented Mar 4, 2024

I usually enable all stable lints, and then disable some:

[tool.ruff.lint]
preview = false
select = ["ALL"]
ignore = [
   "WHAT", # comment why
   "WHAT", # comment why
   "WHAT", # comment why
]

Now the linter forces me to add 15 exceptions to the 'ignore' list. The ruff linter documentation says: When using Ruff as a formatter, we recommend avoiding the following lint rules: ... (https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules)

Can we have a single lint config option to switch off formatting lints?

[tool.ruff.lint]
preview = false
format = false  #
@MichaReiser MichaReiser added the configuration Related to settings and configuration label Mar 4, 2024
@zanieb zanieb added the rule-selection Related to enabling or disabling rules label Mar 11, 2024
@zanieb
Copy link
Member

zanieb commented Mar 11, 2024

I would rather solve this via #1774 than the introduction of a new rule selector for this purpose.

Do you mind if we track this there instead?

@KDruzhkin
Copy link
Author

I would rather solve this via #1774 than the introduction of a new rule selector for this purpose.

Do you mind if we track this there instead?

I don't mind, thank you.

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
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 rule-selection Related to enabling or disabling rules
Projects
None yet
Development

No branches or pull requests

3 participants