Skip to content

Format Markdown Python examples with Ruff - #112

Merged
isty2e merged 2 commits into
mainfrom
chore/format-markdown-examples
Jul 28, 2026
Merged

Format Markdown Python examples with Ruff#112
isty2e merged 2 commits into
mainfrom
chore/format-markdown-examples

Conversation

@isty2e

@isty2e isty2e commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

Ruff 0.16 can format Python code blocks embedded in Markdown, so the formatter contract now covers those examples explicitly rather than only discovering them in ad hoc repository-wide runs.

The ruff-format pre-commit hook now includes Markdown files, while CI and the dependency canary both run ruff format --check .. README-only changes also trigger CI. The six existing documentation files reported by Ruff have been reformatted without changing their prose or behavior.

Validation

  • uv run ruff check --extend-select I,UP pyproject.toml src tests .github/scripts
  • uv run ruff format --check . (350 files already formatted)
  • uv run --extra test pre-commit run --all-files
  • uv run pytest (1702 passed)
  • uv run mkdocs build --strict

@isty2e
isty2e merged commit d00a9dc into main Jul 28, 2026
8 checks passed
@isty2e
isty2e deleted the chore/format-markdown-examples branch July 28, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant