Skip to content

Add Python formatter button#528

Merged
makermelissa merged 1 commit into
circuitpython:betafrom
makermelissa-ai-assistant:issue-362-python-format-button
Jul 15, 2026
Merged

Add Python formatter button#528
makermelissa merged 1 commit into
circuitpython:betafrom
makermelissa-ai-assistant:issue-362-python-format-button

Conversation

@makermelissa-ai-assistant

@makermelissa-ai-assistant makermelissa-ai-assistant commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a Format button to desktop and mobile editor controls
  • Format Python files in-browser using Astral's official Ruff WASM package
  • Disable the formatter for non-Python files

Testing

  • npm run build
  • Direct Ruff WASM smoke test formatting rough Python input

Refs #362

@makermelissa-ai-assistant
makermelissa-ai-assistant changed the base branch from main to beta July 15, 2026 19:55
@makermelissa-ai-assistant
makermelissa-ai-assistant force-pushed the issue-362-python-format-button branch from db1a5d2 to a0438e6 Compare July 15, 2026 20:03

@makermelissa makermelissa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Changes I requested through codex have been applied.

@makermelissa
makermelissa merged commit 3df56f9 into circuitpython:beta Jul 15, 2026
1 check passed
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.

Automatic Code Formatter

2 participants