Closed Bug 1344849 Opened 8 years ago Closed 8 years ago

Enable flake8 rule E201: "whitespace after '{'"

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement
Points:
1

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)

+++ 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
No longer depends on: 1344846
Blocks: 1344850
No longer blocks: 1344850
Keywords: good-first-bug
Attached patch bug1344849.patch (obsolete) — Splinter Review
Removed white space before '{'
Attachment #8846424 - Flags: review?(alessio.placitelli)
Assignee: nobody → djmdeveloper060796
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)
Attached patch bug1344849.patchSplinter Review
Made the necessary changes.
Attachment #8846424 - Attachment is obsolete: true
Attachment #8847586 - Flags: review?(alessio.placitelli)
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+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: