mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 21:03:11 +00:00
[ty] Add a warning about pre-release status to the CLI (#17983)
Summary -- This was suggested on Discord, I hope this is roughly what we had in mind. I took the message from the ty README, but I'm more than happy to update it. Otherwise I just tried to mimic the appearance of the `ruff analyze graph` warning (although I'm realizing now the whole text is bold for ruff). Test Plan -- New warnings in the CLI tests. I thought this might be undesirable but it looks like uv did the same thing (https://github.com/astral-sh/uv/pull/6166). 
This commit is contained in:
parent
346e82b572
commit
7a48477c67
2 changed files with 48 additions and 0 deletions
|
|
@ -62,6 +62,11 @@ fn run_check(args: CheckCommand) -> anyhow::Result<ExitStatus> {
|
|||
countme::enable(verbosity.is_trace());
|
||||
let _guard = setup_tracing(verbosity)?;
|
||||
|
||||
tracing::warn!(
|
||||
"ty is pre-release software and not ready for production use. \
|
||||
Expect to encounter bugs, missing features, and fatal errors.",
|
||||
);
|
||||
|
||||
tracing::debug!("Version: {}", version::version());
|
||||
|
||||
// The base path to which all CLI arguments are relative to.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue