using ruff
to modify python source code
#12500
Answered
by
MichaReiser
ChannyClaus
asked this question in
Q&A
-
hi! i'm hoping to use ruff/crates/ruff_python_formatter/src/lib.rs Lines 122 to 141 in 2a64ccc Comments and PyFormatContext::new in particular). is there an easy way to accomplish this or some level of forking the repo + editing inevitable for this?
|
Beta Was this translation helpful? Give feedback.
Answered by
MichaReiser
Jul 25, 2024
Replies: 1 comment 2 replies
-
I don't think you want to use the formatter for this. The formatter is a pretty printer. It formats the code according to Black's style guide. What I would use is:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ChannyClaus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think you want to use the formatter for this. The formatter is a pretty printer. It formats the code according to Black's style guide.
What I would use is: