Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Code style fixups #325

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

Merged
merged 3 commits into from
Oct 11, 2018
Merged

Code style fixups #325

merged 3 commits into from
Oct 11, 2018

Conversation

akx
Copy link
Contributor

@akx akx commented Oct 11, 2018

This PR fixes some wonky indentation (there were occasions of non-4-divisible indentation 😱 ) both mechanically (autopep8) and by hand where manually rewrapping code lead to more readable statements. (That, too, could be automated with something like black.)

In addition, there were some duplicate imports, which were cleaned up with isort. A setup.cfg file was added to configure the multi-line import style to match the one most used in the project.

Signed-off-by: Aarni Koskela <[email protected]>
@brian-brazil
Copy link
Contributor

You have a build failure.

akx added 2 commits October 11, 2018 16:27
Signed-off-by: Aarni Koskela <[email protected]>
Signed-off-by: Aarni Koskela <[email protected]>
@akx
Copy link
Contributor Author

akx commented Oct 11, 2018

Ah yeah. Old Pythons don't like trailing commas in argument lists. Fixed.

@brian-brazil brian-brazil merged commit fd11c49 into prometheus:master Oct 11, 2018
@brian-brazil
Copy link
Contributor

Thanks!

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