ci: lint is red on main — current ruff formats the Python blocks in docs/STRUCTURE.md #79

Closed
opened 2026-11-02 08:18:32 +00:00 by christianmanivong · 0 comments
Owner

What happens

The lint job is red on main (ad9ec0f) and on every PR based on it, e.g. #78:

unformatted: File would be reformatted
   --> docs/STRUCTURE.md:55:18

CI installs ruff unpinned (.venv/bin/pip install -q ruff); the current release (0.17.x) also formats the Python code blocks in Markdown files, and the examples in docs/STRUCTURE.md (added in #37) are not in ruff's format. With ruff 0.15 locally everything passes, so the failure only shows in CI.

Expected

docs/STRUCTURE.md's code blocks are formatted so ruff format --check . passes with the current ruff.

Priority: P2 — blocks every PR of this repo, including the 4.24.0 release chain.

Found during the bug sweep of 2026-11-02.

## What happens The `lint` job is red on main (ad9ec0f) and on every PR based on it, e.g. #78: ``` unformatted: File would be reformatted --> docs/STRUCTURE.md:55:18 ``` CI installs ruff unpinned (`.venv/bin/pip install -q ruff`); the current release (0.17.x) also formats the Python code blocks in Markdown files, and the examples in `docs/STRUCTURE.md` (added in #37) are not in ruff's format. With ruff 0.15 locally everything passes, so the failure only shows in CI. ## Expected `docs/STRUCTURE.md`'s code blocks are formatted so `ruff format --check .` passes with the current ruff. Priority: P2 — blocks every PR of this repo, including the 4.24.0 release chain. Found during the bug sweep of 2026-11-02.
christianmanivong added the
prio
P2
bug
labels 2026-11-02 08:18:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-device-types#79