ty
ty copied to clipboard
Output file configuration option
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.
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.