mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
Add Python 3.14 to configuration options (#17647)
A small PR that just updates the various settings/configurations to allow Python 3.14. At the moment selecting that target version will have no impact compared to Python 3.13 - except that a warning is emitted if the user does so with `preview` disabled.
This commit is contained in:
parent
504fa20057
commit
ae7691b026
7 changed files with 32 additions and 5 deletions
|
@ -30,6 +30,10 @@ impl PythonVersion {
|
|||
major: 3,
|
||||
minor: 13,
|
||||
};
|
||||
pub const PY314: PythonVersion = PythonVersion {
|
||||
major: 3,
|
||||
minor: 14,
|
||||
};
|
||||
|
||||
pub fn iter() -> impl Iterator<Item = PythonVersion> {
|
||||
[
|
||||
|
@ -40,6 +44,7 @@ impl PythonVersion {
|
|||
PythonVersion::PY311,
|
||||
PythonVersion::PY312,
|
||||
PythonVersion::PY313,
|
||||
PythonVersion::PY314,
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
@ -49,6 +54,7 @@ impl PythonVersion {
|
|||
Self::PY37
|
||||
}
|
||||
|
||||
// TODO: change this to 314 when it is released
|
||||
pub const fn latest() -> Self {
|
||||
Self::PY313
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue