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

Resolve flake8 issues #3060

Merged
merged 13 commits into from
Jan 31, 2019
Merged

Resolve flake8 issues #3060

merged 13 commits into from
Jan 31, 2019

Conversation

zippolyte
Copy link
Contributor

@zippolyte zippolyte commented Jan 31, 2019

What does this PR do?

Fix a bunch of flake8 errors across our checks

Motivation

master is broken

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests
  • Git history is clean
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo
  • If PR adds a configuration option, it has been added to the configuration file.

Additional Notes

Anything else we should know when reviewing?

@codecov-io
Copy link

codecov-io commented Jan 31, 2019

Codecov Report

Merging #3060 into master will decrease coverage by 6.46%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3060      +/-   ##
==========================================
- Coverage   83.55%   77.08%   -6.47%     
==========================================
  Files         560       97     -463     
  Lines       25987     5145   -20842     
  Branches     3383      576    -2807     
==========================================
- Hits        21713     3966   -17747     
+ Misses       3271     1014    -2257     
+ Partials     1003      165     -838

@zippolyte zippolyte requested a review from a team as a code owner January 31, 2019 17:11

# for reasons unknown, flake8 says that pdh_mocks_fixture is unused, even though
# it's used below. noqa to suppress that error.
from datadog_test_libs.win.pdh_mocks import pdh_mocks_fixture, initialize_pdh_tests # noqa: F401
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ofek re this: should we just make datadog_checks_test_helpers a pytest plugin, similar to datadog_checks_dev, so that the fixtures are automatically discovered by pytest ? That would allow us to use them without having to import them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I haven't had time though

Copy link
Contributor

@nmuesch nmuesch left a comment

Choose a reason for hiding this comment

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

Overall I think the code looks good, thanks for fixing this! Mostly style changes. Though since this impacts not just test files, I do think its worth a Fixed changelog label here.

@nmuesch nmuesch changed the title Make flake8 happy Resolve flake8 issues Jan 31, 2019
@nmuesch nmuesch merged commit d62b1e1 into master Jan 31, 2019
@nmuesch nmuesch deleted the hippo/fix branch January 31, 2019 19:41
@ofek ofek mentioned this pull request Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants