Can I make formatting opt-in per file with fmt: on
?
#15205
Unanswered
jwhitaker-gridcog
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You could use globs in
If you don't mind, I'm curious to know what kind of calls are we talking about here. Is it related to #8452 ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
We have a big company codebase that we're wanting to introduce formatting to. It's data-science heavy, so there's a lot of pandas calls that ruff doesn't handle so well, we'd like to leave them alone. However we'd like to enable formatting for other more standard python files. We'd like this to be opt-in instead of opt-out, however.
Is it possible to configure ruff so that files are considered
fmt: off
by default, but then we could include# fmt: on
ourselves as an initial line of files we want to opt in to?This would be a better workflow that the existing exclude list just because the list of files is so damn big, and our in/out status doesn't really generalize by parent paths.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions