Closed Bug 2096196 Opened 3 days ago Closed 3 days ago

Update ruff to 0.17.6 and rumdl to 0.3.5

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
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 --fix summary from Fixed N/M issues to Fixed: 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 = true keeps 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.
Assignee: nobody → sledru
Status: NEW → ASSIGNED

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.

Generated with ./mach lint -l md --fix. The changes only affect
whitespace and don't change the rendered output.

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

Attachment

General

Created:
Updated:
Size: