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

Format with autopep8 and clean up code #65

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

mbrukman
Copy link
Collaborator

Cleanups as follows (no functional changes):

  • run autopep8 on code to standardize formatting
  • remove unused and commented-out imports
  • use consistent 4-space indent (some code used 3 spaces)
  • remove extra blank lines and trailing whitespace
  • add missing spaces around =
  • remove "# Imports" comments: it's obvious that they're imports, and imports
    are always at the top of the file
  • order imports as per https://www.python.org/dev/peps/pep-0008/#imports
  • sort imports when autopep8 did not

Cleanups as follows (no functional changes):

* run `autopep8` on code to standardize formatting
* remove unused and commented-out imports
* use consistent 4-space indent (some code used 3 spaces)
* remove extra blank lines and trailing whitespace
* add missing spaces around `=`
* remove "# Imports" comments: it's obvious that they're imports, and imports
  are always at the top of the file
* order imports as per https://www.python.org/dev/peps/pep-0008/#imports
* sort imports when `autopep8` did not
@mbrukman mbrukman merged commit 7668645 into rossant:master Jan 16, 2022
@mbrukman mbrukman deleted the format-and-cleanup-code branch January 16, 2022 00:01
@mbrukman mbrukman added this to the Release 0.1.5 milestone Jan 18, 2022
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.

1 participant