Change my code format #5985

Open
opened 2026-02-16 17:59:10 -05:00 by yindo · 0 comments
Owner

Originally created by @yheng0821 on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

When I use opencode to change code, I know my code doesn't comply with pep8 standards, for example: num = [1, 2, 3 ...] (with relatively long data), but I want these lists to remain as one line. When I use the agent to change code, it seems to automatically execute the ruff command and automatically generates a ruff_cache folder in the workspace, but I don't have the ruff command installed in my environment, I only have pyright installed in the global Python environment. I don't want opencode to change my existing code format, I don't know where this problem comes from.

Originally created by @yheng0821 on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question When I use opencode to change code, I know my code doesn't comply with pep8 standards, for example: num = [1, 2, 3 ...] (with relatively long data), but I want these lists to remain as one line. When I use the agent to change code, it seems to automatically execute the ruff command and automatically generates a ruff_cache folder in the workspace, but I don't have the ruff command installed in my environment, I only have pyright installed in the global Python environment. I don't want opencode to change my existing code format, I don't know where this problem comes from.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5985