Skip to content

Major code cleanup: - #24

Merged
uunicorn merged 9 commits into
uunicorn:masterfrom
VorpalBlade:feature/code-cleanup
Aug 6, 2020
Merged

uunicorn merged 9 commits into
uunicorn:masterfrom
VorpalBlade:feature/code-cleanup

Conversation

@VorpalBlade

Copy link
Copy Markdown
Contributor
  • Reformatting (this is split in two due to the required rebase in the middle, too difficult to reorder commits around this). I used YAPF for this, no particular reason other than that it is standalone and seems reasonably popular.
  • Fixing several small issues found by the code inspection in the PyCharm IDE.
  • Adding some typing information
  • Simply the blob design, while still auto loading, the exported symbols are now at least plainly visible to IDEs and tooling.

PEP8 settings are used except the low 80 column limit has be increased
to a more reasonable 100 columns.
These are dangerous as you will import not only the functions defined
in the other module but also all of it's imports! This makes automated
cleanups brittle.
This sorts imports into sections:
* From standard library
* From other libraries
* From the current project

Each section is sorted alphabetically.
Comment thread scripts/prototype.py Resolved
@uunicorn
uunicorn merged commit 6a7ae70 into uunicorn:master Aug 6, 2020
@VorpalBlade
VorpalBlade deleted the feature/code-cleanup branch August 6, 2020 10:42
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