mirror of https://github.com/astral-sh/ruff
add an `I_KNOW_TY_IS_PRE_RELEASE` env var to turn off the pre-release warning
This commit is contained in:
parent
e73a8ba571
commit
c7a241e112
|
|
@ -68,10 +68,12 @@ fn run_check(args: CheckCommand) -> anyhow::Result<ExitStatus> {
|
|||
|
||||
let printer = Printer::default().with_verbosity(verbosity);
|
||||
|
||||
tracing::warn!(
|
||||
"ty is pre-release software and not ready for production use. \
|
||||
if std::env::var_os("I_KNOW_TY_IS_PRE_RELEASE").is_none() {
|
||||
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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue