Fix ruff UP031 and PLW2901 warnings in python/mozbuild/mozbuild/action
Categories
(Firefox Build System :: Mach Core, enhancement)
Tracking
(firefox157 fixed)
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: sorb.hanzala, Assigned: sorb.hanzala, NeedInfo)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:154.0) Gecko/20100101 Firefox/154.0
Steps to reproduce:
Fix UP031 and PLW2901 ruff warnings in python/mozbuild/mozbuild/action.
These warnings complain about the use of older percent-style string formatting which should be replaced with f-strings, and loop variables being overwritten by assignment targets.
To verify the fix:
./mach lint -W soft -l ruff python/mozbuild/mozbuild/action/
| Assignee | ||
Comment 1•29 days ago
|
||
Replace percent-style string formatting with f-strings for modern Python style and fix loop variable overwriting warnings in python/mozbuild/mozbuild/action/.
Updated•29 days ago
|
Comment 2•29 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•29 days ago
|
||
Comment 6•28 days ago
|
||
Backed out for causing build bustages at libmozsqlite3.so.symbols.
Backout link: https://hg.mozilla.org/integration/autoland/rev/17edf99ca40ae7de7148a62c6f4f9c7559d774aa
Description
•