-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Labels
Description
Description
The uv formatter's internal name is uv format, mismatching the name shown in documentation as uv.
From docs/formatters
![]()
But internal name is uv format instead
export const uvformat: Info = {
name: "uv format",
command: ["uv", "format", "--", "$FILE"],
extensions: [".py", ".pyi"],This results in configuration ignored inside opencode.jsonc
Plugins
No response
OpenCode version
No response
Steps to reproduce
# Install uv, then add "formatter" attribute into opencode.jsonc
grep \"formatter -A 3 ~/.config/opencode/opencode.jsonc
# "formatter": {
# "ruff": { "disabled": true },
# "uv": { "disabled": true }
# },
# create test file and execute opencode
echo "if True: print('42')" > test.py
opencode run 'add shebang for @test.py, then remove it'
cat test.py
# if True:
# print("42")
# ^ standard formatting applied
# replace "uv" with "uv format", then re-create and re-run opencode
sed -i 's/uv/uv format/g' ~/.config/opencode/opencode.jsonc
echo "if True: print('42')" > test.py
opencode run 'add shebang for @test.py, then remove it'
cat test.py
# if True: print('42')
# ^ no formattingScreenshot and/or share link
No response
Operating System
No response
Terminal
No response
{ "formatter": { "ruff": { "disabled": true }, "uv": { "disabled": true } // <-- ignored } }