ty icon indicating copy to clipboard operation
ty copied to clipboard

Output file configuration option

Open kieran-ryan opened this issue 3 months ago • 1 comments

Provide a --output-file configuration option - matching ruff - to specify file to output the linter output rather than the user handling through other means. Standardises configuration across Astral toolchains.

Ty Check:
  script:
    - ty check --output-format=gitlab --output-file=code-quality-report.json
  artifacts:
    reports:
      codequality: $CI_PROJECT_DIR/code-quality-report.json
Ruff Check:
  script:
    - ruff check --output-format=gitlab --output-file=code-quality-report.json
  artifacts:
    reports:
      codequality: $CI_PROJECT_DIR/code-quality-report.json

Related https://github.com/astral-sh/ruff/pull/21706.

kieran-ryan avatar Nov 30 '25 23:11 kieran-ryan

For context. The --output-file was added in https://github.com/astral-sh/ruff/issues/2388, but it's not sufficient for the use case of most users who want multiple outputs in CI.

MichaReiser avatar Dec 01 '25 07:12 MichaReiser