-
-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
random.choice(config.no_gifs) | ||
) | ||
) | ||
|
||
return | ||
|
||
logging.debug( | ||
f'Now executing command {requested_command},' | ||
f' by {reply.author.name}.' | ||
f"Now executing command {requested_command}," f" by {reply.author.name}." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This right here is an error, as far as the python interpreter is concerned.
I noticed the same when I was running black
on the celery rewrite code, noticing it wasn't perfect at rewriting the multi-line string stuff or understanding f-strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Looks like this is a known bug. psf/black#369
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like even that is a duplicate of a long(ish)-standing bug: psf/black#26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to go through all lines of all of the files changed so we can confirm there weren't any (other) syntax errors created by reformatting the source code like this.
That said, I'm all for using black to center around some style guide. 👍
Closing because change is stale. Will need to address the issue and merge it quickly since it touches so many files and has a high potential for merge conflicts. |
#127
This is a "hey, let's see what it looks like and if we want to go this route" kind of PR. If we don't like it, we can close it, no big deal.
This is the result of running:
black setup.py && black tor
in the root directory, using the default configurations for Black. Honestly I do kind of like how it turned out, but I'm curious as to your thoughts.