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

Cleans up generated code output. #279

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Cleans up generated code output. #279

merged 1 commit into from
Feb 14, 2022

Conversation

kdschlosser
Copy link
Contributor

This is a pretty involved PR in what it does. There is a decent amount of code changes but nothing to crazy. Here are the things the PR does

removes duplicate imports
removes unused imports
puts declarations after imports instead of being mixed in with the imports
formats most code that is over 80 characters on a single line
2 blank lines before and after classes
puts class docstrings as the first line in the class this way it can actually get set to __doc__
fixes lack of triple double quotes not being used around class docstrings

So in a nutshell it makes most of the generated code PEP8 compliant and it makes the generated code a whole hell of a lot easier on the 👀

This is a pretty involved PR in what it does. There is a decent amount of code changes but nothing to crazy. Here are the things the PR does

removes duplicate imports
removes unused imports
puts declarations after imports instead of being mixed in with the imports
formats most code that is over 80 characters on a single line
2 blank line before and after classes
puts class docstrings as the first line in the class  this way it can actually get set to a docstring
fixes lack of triple double quotes not being used around class docstrings

So in a nutshell it makes most of the generated code PEP8 compliant and it makes the generated code a whole hell of a lot easier on the 👀
@vasily-v-ryabov
Copy link
Collaborator

vasily-v-ryabov commented Feb 13, 2022

pywinauto tests with this PR branch (just started): https://ci.appveyor.com/project/pywinauto/pywinauto-8b7t7/builds/42558727

One Python 3.6 line fails expectedly. The rest should pass. Hopefully.

Copy link
Collaborator

@vasily-v-ryabov vasily-v-ryabov left a comment

Choose a reason for hiding this comment

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

I can say it's good enough after quick look. If pywinauto tests are not broken, I will merge it.

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