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)

task

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.

Type: defect → task
Blocks: ruff
Duplicate of this bug: 2042444
Assignee: nobody → dineth2022
Status: NEW → ASSIGNED

This is my first ever open source contribution!

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

(In reply to Sylvestre Ledru [:Sylvestre] from comment #4)

We all started with a first contribution :)

Thanks, exited to contribute more!

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: