per-file-ignore
/ extend-per-file-ignore
for ruff format
to deactivate only certain rules for certain files
#19067
-
Hi all, I'd like to exclude line length checking/fixing from
Unfortunately, this doesn't seem possible for the formatting part. On the other hand, I don't want to completely exclude these files from formatting per se and I don't want to increase the line length for all files either. Would anybody be aware of a way of doing this? Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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 theextend
config.