Repository navigation
style(website): apply ruff format to Python snippet in agents page - #3443
Merged
Merged
Conversation
The agent-facing docs page added a Python code block that ruff (which formats Python in Markdown) wants in single-quote style. The lint workflow is path-filtered to Python/dependency files, so it did not run on that change and the failure only surfaced on later dependency PRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot encountered an error: Your billing is not configured or you have Copilot licenses from multiple standalone organizations or enterprises. To use premium requests, select a billing entity via the GitHub site, under Settings > Copilot > Features.
|
vpetersson
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
uv run ruff format --check .fails onmasterwith the pinned ruff (0.17.1), not because of any dependency bump. Ruff formats Python code blocks inside Markdown, and the Python snippet inwebsite/content/agents.md(added in #3426) uses double quotes, while the repo's ruff config enforces single quotes.The Python lint workflow is path-filtered to
*.py,pyproject.tomlanduv.lock, so it did not run on the docs change. The failure first showed up on later PRs that touch those paths, including the Dependabot PRs #3434, #3431 and #3430.This PR runs
ruff formaton that file. The snippet is otherwise unchanged: quote style plus one blank line before the function definition.Verification (local, ruff 0.17.1 from
uv.lock)uv run ruff format --check .passes: 273 files already formatteduv run ruff check .passes: All checks passed🤖 Generated with Claude Code