Skip to content

per-file-ignore / extend-per-file-ignore for ruff format to deactivate only certain rules for certain files #19067

Answered by dhruvmanila
dmrauch asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

The formatter doesn't expose many config options similar to the linter. The rules infrastructure is specific to the linter. There's more context on this here: #18486, #11143.

For your specific use case, you could possibly change the format.lint-length value for all the files in a specific directory using the extend config.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmrauch
Comment options

Answer selected by dmrauch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants