Closed
Bug 1344849
Opened 8 years ago
Closed 8 years ago
Enable flake8 rule E201: "whitespace after '{'"
Categories
(Toolkit :: Telemetry, enhancement, P3)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: Dexter, Assigned: djmdeveloper060796, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [measurement:client][lang=python])
Attachments
(1 file, 1 obsolete file)
2.39 KB,
patch
|
Dexter
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1344846 +++
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 E201, "whitespace after '{'":
1) Remove the E201 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
Assignee | ||
Comment 1•8 years ago
|
||
Removed white space before '{'
Attachment #8846424 -
Flags: review?(alessio.placitelli)
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → djmdeveloper060796
Reporter | ||
Comment 2•8 years ago
|
||
Comment on attachment 8846424 [details] [diff] [review]
bug1344849.patch
Review of attachment 8846424 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/telemetry/gen-histogram-bucket-ranges.py
@@ +46,4 @@
> except histogram_tools.DefinitionException:
> continue
>
> + all_histograms.update({name: parameters });
Let's also trim the whitespace after |parameters|, before }
::: toolkit/components/telemetry/histogram_tools.py
@@ +135,1 @@
> 'opt-out': 'DATASET_RELEASE_CHANNEL_OPTOUT' }
Let's align 'opt-out' to 'opt-in' on the previous line. Let's also remove the whitespace after 'DATASET_RELEASE_CHANNEL_OPTOUT', before }
Attachment #8846424 -
Flags: review?(alessio.placitelli)
Assignee | ||
Comment 3•8 years ago
|
||
Made the necessary changes.
Attachment #8846424 -
Attachment is obsolete: true
Attachment #8847586 -
Flags: review?(alessio.placitelli)
Reporter | ||
Comment 4•8 years ago
|
||
Comment on attachment 8847586 [details] [diff] [review]
bug1344849.patch
Review of attachment 8847586 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good, thanks!
Attachment #8847586 -
Flags: review?(alessio.placitelli) → review+
Reporter | ||
Comment 5•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b23a39f0707e969ef2de914f72462e335b26d863
Bug 1344849 - Enabled flake8 rule E201: "whitespace after '{'". r=Dexter
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → 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
•