Closed
Bug 1344836
Opened 8 years ago
Closed 8 years ago
Enable flake8 rule E713: "test for membership should be 'not in'"
Categories
(Toolkit :: Telemetry, enhancement, P3)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: Dexter, Assigned: fedepad, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [measurement:client][lang=python])
Attachments
(1 file)
+++ This bug was initially created as a clone of Bug #1344834 +++
In bug 1332651 we landed flake8 initial support to lint Python files in the Telemetry directory, by disabling all the detected problems.
This bug is about enabling the E713, "test for membership should be 'not in'":
1) Remove the E713 rule from the .flake8 file in https://dxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry
2) Run "./mach lint -l flake8 toolkit/components/telemetry".
3) Fix the reported problems
Reporter | ||
Updated•8 years ago
|
Keywords: good-first-bug
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
Done, tests pass (./mach test).
Submitted for review.
Reporter | ||
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8846912 [details]
Bug 1344836 - Enable flake8 rule E713: "test for membership should be 'not in'".
https://reviewboard.mozilla.org/r/119918/#review122654
This looks good, thanks. Let me push that to try to make sure nothing is broken on the telemetry side due to that change.
Attachment #8846912 -
Flags: review?(alessio.placitelli) → review+
Assignee | ||
Comment 4•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8846912 [details]
Bug 1344836 - Enable flake8 rule E713: "test for membership should be 'not in'".
https://reviewboard.mozilla.org/r/119918/#review122654
Perfect, thanks!
Assignee | ||
Comment 5•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8846912 [details]
Bug 1344836 - Enable flake8 rule E713: "test for membership should be 'not in'".
https://reviewboard.mozilla.org/r/119918/#review122654
It needs to be rebased.
I will do it after we deal with https://reviewboard.mozilla.org/r/119900/
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → federico_padua
Status: NEW → ASSIGNED
Reporter | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8846912 [details]
Bug 1344836 - Enable flake8 rule E713: "test for membership should be 'not in'".
https://reviewboard.mozilla.org/r/119918/#review122654
Now that the other bug landed, would you please rebase this?
Assignee | ||
Comment 7•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8846912 [details]
Bug 1344836 - Enable flake8 rule E713: "test for membership should be 'not in'".
https://reviewboard.mozilla.org/r/119918/#review122654
Yes, I'm going to do it now...
Comment hidden (mozreview-request) |
Pushed by alessio.placitelli@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d5f899fa1771
Enable flake8 rule E713: "test for membership should be 'not in'". r=Dexter
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
status-firefox54:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•