Skip to content

top-level lint options grouped under [tool.ruff.lint] #9406

Answered by zanieb
AlessandroMiola asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Glad to see you're using Ruff :)

I think most of the confusion is that we have some future plans that aren't covered in the documentation. For example, show-source is an option for the ruff check command which is not quite specific to the linter (see #8232). Additionally, we're planning on removing that options entirely in the future (see #4189). So there are a couple reasons that option wasn't moved.

We expect some options to remain at the top-level as well as at the lint level, such as file selection options (e.g. include) or options that apply to both the linter and formatter (e.g. line_length).

I hope this helps! Feel free to ask more questions. There should be deprecation warning…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AlessandroMiola
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants