Skip to content

Commit

Permalink
Change default for Python version from 3.8 to 3.9 (#13896)
Browse files Browse the repository at this point in the history
Co-authored-by: Micha Reiser <[email protected]>
  • Loading branch information
takaya0 and MichaReiser committed Nov 20, 2024
1 parent afeb217 commit 1b180c8
Show file tree
Hide file tree
Showing 123 changed files with 90 additions and 5,488 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ exclude = [
line-length = 88
indent-width = 4
# Assume Python 3.8
target-version = "py38"
# Assume Python 3.9
target-version = "py39"
[lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/settings/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ use crate::{display_settings, fs};
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum PythonVersion {
Py37,
Py38,
// Make sure to also change the default for `ruff_python_formatter::PythonVersion`
// when changing the default here.
#[default]
Py38,
Py39,
Py310,
Py311,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"target_version": "py38"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"target_version": "py38"}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1b180c8

Please sign in to comment.