Skip to content

Conversation

@nicoonoclaste
Copy link
Contributor

  • Avoid function calls in default arguments (it has surprising behaviour: the call is only evaluated once)
  • Comply with PEP8 code style.
  • Remove unused imports and variables.
  • Use a uniform import order
  • Use trailing commas where useful

@nicoonoclaste nicoonoclaste requested a review from a team as a code owner May 28, 2019 03:54
@pathunstrom pathunstrom removed the request for review from a team May 28, 2019 04:05
Copy link
Collaborator

@pathunstrom pathunstrom left a comment

Choose a reason for hiding this comment

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

Blocking this for now, will discuss tomorrow.

import ppb
from ppb import Vector
from ppb import keycodes
from ppb import keycodes, Vector
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer one per import per line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI, there were already places which had multiple imports per line, and in ppb-vector too.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, she and I kinda disagree on that.

Copy link
Contributor Author

@nicoonoclaste nicoonoclaste May 28, 2019

Choose a reason for hiding this comment

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

OK, so then @pathunstrom, can we agree to disagree, instead of expecting contributors to conform with a styleguide that only exists in your head, that the codebase doesn't comply with, and giving them imperative-mode feedback without explanations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PS: I just realised the tone might be wrong there; to clarify, I wasn't annoyed at you, though I felt it was important to provide feedback on that being frustrating & why (not necessarily just for me, but also for other contributors), esp. since that's not the first time it happens.

Per Piper's request.
@pathunstrom pathunstrom changed the base branch from master to canon June 27, 2020 11:02
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.

3 participants