Skip to content
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

Minor improvements #285

Open
wants to merge 13 commits into
base: canon
Choose a base branch
from
Open

Minor improvements #285

wants to merge 13 commits into from

Conversation

nbraud
Copy link
Contributor

@nbraud nbraud commented May 28, 2019

  • 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

@nbraud nbraud requested a review from a team as a code owner May 28, 2019 03:54
@nbraud nbraud mentioned this pull request May 28, 2019
@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

@nbraud nbraud 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