Skip to content

Fix lint related to vertical whitespace - #246

Merged
brian-brazil merged 2 commits into
prometheus:masterfrom
bz2:lint_spacing
Mar 19, 2018
Merged

brian-brazil merged 2 commits into
prometheus:masterfrom
bz2:lint_spacing

Conversation

@bz2

@bz2 bz2 commented Feb 17, 2018

Copy link
Copy Markdown
Contributor

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

Resolves E123, E302, E303, E305, and E306.
Comment thread tests/test_exposition.py Outdated
self.assertEqual(b'# HELP nonnumber Non number\n# TYPE nonnumber untyped\nnonnumber 123.0\n', generate_latest(self.registry))


class MyNumber(object):

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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