-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Resolve flake8 issues #3060
Conversation
Codecov Report
@@ 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 |
|
||
# 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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.
What does this PR do?
Fix a bunch of flake8 errors across our checks
Motivation
master is broken
Review checklist
no-changelog
label attachedAdditional Notes
Anything else we should know when reviewing?