Skip to content

Fix lint related to vertical whitespace #246

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 2 commits into from
Mar 19, 2018

Conversation

bz2
Copy link
Contributor

@bz2 bz2 commented Feb 17, 2018

Resolves E123, E302, E303, E305, and E306.

Resolves E123, E302, E303, E305, and E306.
self.registry.register(MyCollector())
self.assertEqual(b'# HELP nonnumber Non number\n# TYPE nonnumber untyped\nnonnumber 123.0\n', generate_latest(self.registry))


class MyNumber(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer to keep these where they are so it's clear what's going on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think inlining helper classes to test methods is generally a bad idea as it pushes test authors to making bigger more complex methods to avoid duplicating components.

That said, have reversed the change and will push now.

@brian-brazil brian-brazil merged commit 55f1055 into prometheus:master Mar 19, 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