Repository navigation
Replies: 1 comment
|
This sounds like an interesting idea to me! LLMs do this in Rust code too. It would probably end up being a |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I often come across code that will do something like:
I think a clean rule would be to enforce either triple quoted strings in such cases of 2 or more
\nin a single line.And additionally perhaps if spaces/indentation are present even https://docs.python.org/3/library/textwrap.html
Side note: LLMs love these for some reason This rule makes for human readable code at very little cost. And generally is also less error prone in terms of indentation/spaces.
I tried searching for something similar in
ruffbut couldn't find an equivalent.All reactions