Skip to content

Conversation

@Sebbo94BY
Copy link
Contributor

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. :)

sebastian_kraetzig and others added 6 commits December 28, 2022 18:02
* 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]>
@Murgeye
Copy link
Owner

Murgeye commented Dec 28, 2022

Sorry, I am a bit busy at the moment, this will take a bit to review (as well as the changes proposed by #23 ).

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"
Copy link
Owner

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.

Copy link
Contributor Author

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'
>>> 

Copy link
Owner

@Murgeye Murgeye left a 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!

@Murgeye Murgeye merged commit b314eb3 into Murgeye:master Jan 12, 2023
@Sebbo94BY Sebbo94BY deleted the Implement-Black-formatter branch January 12, 2023 16:00
@Sebbo94BY
Copy link
Contributor Author

Nice, thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants