-
Notifications
You must be signed in to change notification settings - Fork 8
Implement Black formatter #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: sebastian_kraetzig <[email protected]>
* Update deprecated CodeQL version CodeQL v1 will be unsupported by January 2023, so their recommendation is to update to v2, which requires no changes. * Remove deprecated `git checkout HEAD^2` step CodeQL recommends to remove this step to ensure, that the check runs against the respective latest commit. * Update checkout action version Node.js 12 actions are deprecated. Github recommends to upgrade to Node.js 16. Co-authored-by: sebastian_kraetzig <[email protected]>
|
Sorry, I am a bit busy at the moment, this will take a bit to review (as well as the changes proposed by #23 ). |
test_TS3Connection.py
Outdated
| resp = b"notifyclientleftview cfid=1 ctid=0 reasonid=8 " \ | ||
| b"reasonmsg=Left. clid=1" | ||
| resp = ( | ||
| b"notifyclientleftview cfid=1 ctid=0 reasonid=8 " b"reasonmsg=Left. clid=1" |
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 does not seem right, this should be changed into a single byte string.
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.
The behaviour shouldn't change due to this change.
Both versions should result in the same behaviour as you can see below:
>>> resp = b"notifyclientleftview cfid=1 ctid=0 reasonid=8 " \
... b"reasonmsg=Left. clid=1"
>>>
>>> print( resp )
b'notifyclientleftview cfid=1 ctid=0 reasonid=8 reasonmsg=Left. clid=1'
>>>
>>> resp = (
... b"notifyclientleftview cfid=1 ctid=0 reasonid=8 " b"reasonmsg=Left. clid=1"
... )
>>>
>>> print( resp )
b'notifyclientleftview cfid=1 ctid=0 reasonid=8 reasonmsg=Left. clid=1'
>>>
Alternativley, we can also write it like this:
>>> resp = b"notifyclientleftview cfid=1 ctid=0 reasonid=8 reasonmsg=Left. clid=1"
>>>
>>> print( resp )
b'notifyclientleftview cfid=1 ctid=0 reasonid=8 reasonmsg=Left. clid=1'
>>>
…speak3-python-api into Sebi94nbg-Implement-Black-formatter
Murgeye
left a comment
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.
I have updated the pull request with some fixes regarding my newest commits. Should be good now!
|
Nice, thank you! :) |
This pull request would introduce Black as code-style formatter.
Feel free to close it, if you're not interested. I just thought, that this would somehow improve the code-style and standardize it a bit more. :)