Skip to content

Reformat code with black#13

Closed
XVilka wants to merge 3 commits intoBinaryAnalysisPlatform:masterfrom
XVilka:python-black
Closed

Reformat code with black#13
XVilka wants to merge 3 commits intoBinaryAnalysisPlatform:masterfrom
XVilka:python-black

Conversation

@XVilka
Copy link
Copy Markdown
Contributor

@XVilka XVilka commented Jun 3, 2020

Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.

Blackened code looks the same regardless of the project you're reading. Formatting becomes transparent after a while and you can focus on the content instead.

Black makes code review faster by producing the smallest diffs possible.

@XVilka
Copy link
Copy Markdown
Contributor Author

XVilka commented Sep 21, 2020

Updated, also fixed some of the Codacy issues. @ivg @gitoleg please take a look.

class MSR(Special) : pass
class PLDi12(Special) : pass
class SVC(Special) : pass

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This renders the module totally unreadable. The whole idea is that you can quickly see different variants of the ADT.

self.msg = self.bap.get_resource(self.ident)
if not self._name in self.msg:
if "error" in msg:
if "error" in self.msg:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like that there was a bug here

Copy link
Copy Markdown
Member

@ivg ivg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am definitely against the black formatting, it destroys code readability. There is, however, a real bug fix (the second commit) which we will happily accept.

Thanks!

@XVilka XVilka mentioned this pull request Sep 22, 2020
@XVilka
Copy link
Copy Markdown
Contributor Author

XVilka commented Sep 22, 2020

Closing in favor or just fixes then: #15

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