-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
astral-sh/ruff
#21058Labels
cliRelated to the command-line interfaceRelated to the command-line interface
Description
Summary
When running ty check inside a pre-commit or prek hook, the progress bar is caught by the logs. This problem is worsed when running ty via pre-commit inside a GitHub actions because the progress bar refresh adds log lines. It's also missing a new line after the 9/9 files (end of progress bar).
The command output renders correctly in a terminal but not inside pre commits
For example
ty-check.................................................................Failed
- hook id: ty-check
- exit code: 1
Uninstalled 2 packages in 19ms
Installed 4 packages in 6ms
WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
Checking ------------------------------------------------------------ 9/9 files path/to/file:17:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[Foo | ((...) -> Any)] | None`, found `tuple[FunctionType, ...]`
Found 1 diagnostic
error: Recipe `type-check` failed on line 20 with exit code 1
Version
ty 0.0.1-alpha.19
Metadata
Metadata
Assignees
Labels
cliRelated to the command-line interfaceRelated to the command-line interface