Closed
Bug 2042443
Opened 5 months ago
Closed 5 months ago
Fix ruff warnings in python/mach/mach/registrar.py
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox153 fixed)
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: dineth2022)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=python])
Attachments
(1 external file)
Filing as a good first bug to learn workflows.
python/mach/mach/registrar.py
36:17 warning Use format specifiers instead of percent format UP031 (ruff)
41:17 warning Use format specifiers instead of percent format UP031 (ruff)
59:21 warning Use format specifiers instead of percent format UP031 (ruff)
Link to the code:
https://searchfox.org/mozilla-central/source/python/mach/mach/registrar.py#36
To run the linter:
./mach lint -W -l ruff python/mach/mach/registrar.py
As the change is trivial, it is just to learn how to contribute to Firefox.
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
| Reporter | ||
Updated•5 months ago
|
Type: defect → task
| Assignee | ||
Comment 2•5 months ago
|
||
Updated•5 months ago
|
Assignee: nobody → dineth2022
Status: NEW → ASSIGNED
| Reporter | ||
Comment 4•5 months ago
|
||
We all started with a first contribution :)
Pushed by sledru@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/fef516168591
https://hg.mozilla.org/integration/autoland/rev/b46d98dd13e2
Changed strings with percentage formats to fstrings with formatting specifiers. r=sylvestre
| Assignee | ||
Comment 6•5 months ago
|
||
(In reply to Sylvestre Ledru [:Sylvestre] from comment #4)
We all started with a first contribution :)
Thanks, exited to contribute more!
Comment 7•5 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
status-firefox153:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•