Update ruff to 0.17.6 and rumdl to 0.3.5
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: Sylvestre)
Details
Attachments
(3 external files)
Update the linter pins in python/sites/lint.txt and python/sites/python-test.txt:
- ruff 0.17.4 -> 0.17.6: bug-fix releases only. No reformat or new errors on the tree.
- rumdl 0.1.96 -> 0.3.5:
- rumdl changed its
--fixsummary fromFixed N/M issuestoFixed: N/M issues, so the mozlint wrapper always reported 0 fixed issues. The wrapper's regex is updated. - rumdl now prints
[]instead of a plain-text message when a path has no Markdown files, so that special case is removed from the wrapper. - MD076 got stricter in 0.3.5.
allow-loose-continuation = truekeeps the previous behaviour. - MD077 doesn't handle MyST definition lists nested in list items, so it is ignored for two files.
- The remaining MD077/MD076 findings are fixed with
./mach lint -l md --fix. These are whitespace-only changes in 9 docs files.
- rumdl changed its
| Assignee | ||
Comment 1•3 days ago
|
||
Updated•3 days ago
|
| Assignee | ||
Comment 2•3 days ago
|
||
The --fix summary is now "Fixed: N/M issues", so update the regular
expression counting fixed issues. A path without Markdown files is now
reported on stderr with an empty JSON array on stdout, so the special
case for the plain-text message is no longer needed.
MD076 now asks for blank lines between all items of a list as soon as one
item contains blank-separated blocks. Set allow-loose-continuation to keep
the previous behavior, as these lists already render loose.
MD077 now flags over-indented continuation lines, but it doesn't understand
MyST definition lists nested in list items, and its fix moves the
definition's paragraphs out of the definition. Ignore it for the two
documents using that construct.
| Assignee | ||
Comment 3•3 days ago
|
||
Generated with ./mach lint -l md --fix. The changes only affect
whitespace and don't change the rendered output.
Comment 5•3 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/81ea89c41b02
https://hg.mozilla.org/mozilla-central/rev/1e1625a079fc
https://hg.mozilla.org/mozilla-central/rev/32764ef78659
Description
•