Closed
Bug 1979846
Opened 1 year ago
Closed 7 months ago
Fix ruff warnings in dom/bindings/parser/tests/test_distinguishability.py
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox151 fixed)
RESOLVED
FIXED
151 Branch
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: damia.vergnet, Assigned: damia.vergnet)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=python])
Attachments
(1 external file)
Steps to reproduce:
Output of ./mach lint -W -l ruff . &> ruff.txt:
dom/bindings/parser/tests/test_distinguishability.py
104:17 warning Use format specifiers instead of percent format UP031 (ruff)
110:17 warning Use format specifiers instead of percent format UP031 (ruff)
228:18 warning Consider merging multiple comparisons: `a not in {"any", "Promise<any>", "Promise<any>?"}`. PLR1714 (ruff)
429:23 warning Use format specifiers instead of percent format UP031 (ruff)
451:17 warning Use format specifiers instead of percent format UP031 (ruff)
457:17 warning Use format specifiers instead of percent format UP031 (ruff)
Link to code:
https://searchfox.org/mozilla-central/source/dom/bindings/parser/tests/test_distinguishability.py
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → damia.vergnet
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
| Assignee | ||
Comment 2•1 year ago
|
||
I’m planning on fixing all ruff warning within the dom/bindings/parser/ directory and its test/subdirectory as they’re very similar warnings. Should I make one bug report per file or one single bug report for all files?
Comment 3•7 months ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:damia.vergnet, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Flags: needinfo?(sledru)
Flags: needinfo?(damia.vergnet)
Pushed by sledru@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/b868e85666cb
https://hg.mozilla.org/integration/autoland/rev/79fd32c74589
ruff: fix warnings about %-format strings and values check in dom/bindings/parser/tests/test_distinguishability.py. r=sylvestre
Comment 5•7 months ago
|
||
Damia, don't hesitate to ping us to land code!
Flags: needinfo?(sledru)
Flags: needinfo?(damia.vergnet)
Comment 6•7 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
status-firefox151:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•