mirror of https://github.com/astral-sh/ruff
Reword preview warning for `target-version` Python 3.14 (#19563)
Small rewording to indicate that core development is done but that we
may add breaking changes.
Feel free to bikeshed!
Test:
```console
❯ echo "t''" | cargo run -p ruff -- check --no-cache --isolated --target-version py314 -
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/ruff check --no-cache --isolated --target-version py314 -`
warning: Support for Python 3.14 is in preview and may undergo breaking changes. Enable `preview` to remove this warning.
All checks passed!
```
This commit is contained in:
parent
a0d8ff51dd
commit
fbf1dfc782
|
|
@ -473,7 +473,7 @@ pub fn lint_only(
|
||||||
&& !is_py314_support_enabled(settings)
|
&& !is_py314_support_enabled(settings)
|
||||||
{
|
{
|
||||||
warn_user_once!(
|
warn_user_once!(
|
||||||
"Support for Python 3.14 is under development and may be unstable. Enable `preview` to remove this warning."
|
"Support for Python 3.14 is in preview and may undergo breaking changes. Enable `preview` to remove this warning."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -584,7 +584,7 @@ pub fn lint_fix<'a>(
|
||||||
&& !is_py314_support_enabled(settings)
|
&& !is_py314_support_enabled(settings)
|
||||||
{
|
{
|
||||||
warn_user_once!(
|
warn_user_once!(
|
||||||
"Support for Python 3.14 is under development and may be unstable. Enable `preview` to remove this warning."
|
"Support for Python 3.14 is in preview and may undergo breaking changes. Enable `preview` to remove this warning."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue