VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=2042442

⇱ 2042442 - Fix ruff warnings in layout/tools/reftest/reftest/__init__.py


Closed Bug 2042442 Opened 22 days ago Closed 10 days ago

Fix ruff warnings in layout/tools/reftest/reftest/__init__.py

Fix ruff warnings in layout/tools/reftest/reftest/__init__.py
Developer Infrastructure
Lint and Formatting
unspecified
Unspecified
Unspecified
RESOLVED FIXED
RESOLVED
FIXED
153 Branch
Accessibility Severity
Tracking Status
firefox153 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox152
firefox153
firefox154
---
[lang=python]
QA Whiteboard:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 

Filing as a good first bug to learn workflows.


layout/tools/reftest/reftest/__init__.py
 153:17 warning `for` loop variable `line` overwritten by assignment target PLW2901 (ruff)
 162:17 warning `for` loop variable `line` overwritten by assignment target PLW2901 (ruff)
 163:13 warning `for` loop variable `line` overwritten by assignment target PLW2901 (ruff)

Link to the code:
https://searchfox.org/mozilla-central/source/layout/tools/reftest/reftest/__init__.py#153

To run the linter:

./mach lint -W -l ruff layout/tools/reftest/reftest/init.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
Assignee: nobody → pedram.yekta12
Status: NEW → ASSIGNED

Comment 3

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