Skip to content

Add --output-format to ty version #2833

@manzt

Description

@manzt

ruff version supports --output-format text|json, which is handy for tooling and CI that needs to parse version info programmatically. ty version currently only outputs plain text.

It'd be nice to bring the same structured output support to ty version, matching the pattern ruff already has (HelpFormat enum, Serialize on VersionInfo, etc.). Happy to put together a PR for this, but noticed that serde/serde_json are not currently ty deps and wanted to gauge interest first.

For context, we run a version check inside marimo-lsp for both ruff and ty.

Metadata

Metadata

Assignees

Labels

cliRelated to the command-line interface

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions