mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-23 09:19:39 +00:00
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
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue