[PR #3916] Add support for uv format in formatters #10799

Closed
opened 2026-02-16 18:15:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3916

State: closed
Merged: Yes


Astral recently added a new command in uv called uv format. This command is a proxy for ruff, but does not require ruff to be installed separately.

https://docs.astral.sh/uv/reference/cli/#uv-format

This PR introduces support for uv format in the formatters list.

Because this feature is relatively new (released in 0.8.13) and is still in preview, the enabled check tests for the presence of the format command.

If ruff is enabled, the uv formatter will automatically be disabled so that double formatting does not occur.

Discord thread: https://discord.com/channels/1391832426048651334/1435373893060923544

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3916 **State:** closed **Merged:** Yes --- Astral recently added a new command in uv called `uv format`. This command is a proxy for ruff, but does not require ruff to be installed separately. https://docs.astral.sh/uv/reference/cli/#uv-format This PR introduces support for uv format in the formatters list. Because this feature is relatively new (released in 0.8.13) and is still in preview, the `enabled` check tests for the presence of the `format` command. If ruff is enabled, the uv formatter will automatically be disabled so that double formatting does not occur. Discord thread: https://discord.com/channels/1391832426048651334/1435373893060923544
yindo added the pull-request label 2026-02-16 18:15:32 -05:00
yindo closed this issue 2026-02-16 18:15:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10799