Closed Bug 1622681 Opened 5 years ago Closed 4 years ago

dom/encoding: Make it flake8 compliant

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task
Not set
normal

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: Sylvestre, Assigned: nimroot, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=python])

Attachments

(2 files)

Filling as a good first bug to learn workflows.

As the change is easy, it is mostly to learn how to contribute to Firefox.

To work on this, remove this line:
https://searchfox.org/mozilla-central/source/.flake8#11

To run the linter:
$ ./mach lint -l flake8 dom/encoding

To run the autofix:
$ ./mach lint -l flake8 --fix dom/encoding/

Then, the remaining thing should be fixed by hand.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Assignee: nobody → siddhantagarwal99
Status: NEW → ASSIGNED
Assignee: siddhantagarwal99 → nobody
Status: ASSIGNED → NEW

I would like to take over if this bug is available to take.

Hi :nimroot , apparently it is available , feel free to raise the patch :) thank you, let us know if you get stuck

Hi :championshuttler , thank you for rapid reply. I have taken a quick peek into the code, but it seems like dom/encoding directory no longer contains any python files. Does it mean that in scope of this bug we should simply remove the "dom/encoding" exclude from .flake8 file or should the scope of this bug be extended to cover e.g. the whole dom/ directory as flake8-compliant?

:nimroot , ahh interesting, no this bug just cover dom/encoding I guess, you can raise the patch and add sylvestre as reviewer :)

Assignee: nobody → nimroot
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/87e3ebabdb0d Remove dom/encoding from flake8 excludes. r=sylvestre DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: