Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Drop 3.8 support
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat committed Oct 10, 2024
1 parent 5fc1586 commit b8bf9ec
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 56 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- "3.11"
- "3.10"
- "3.9"
- "3.8"
os:
- ubuntu-latest
- windows-latest
Expand Down
30 changes: 15 additions & 15 deletions rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ mod tests {
name = "alpha"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"e>=1.5",
Expand All @@ -152,14 +152,14 @@ mod tests {
"#},
2,
false,
(3, 12),
(3, 13),
)]
#[case::empty(
indoc ! {r""},
"\n",
2,
true,
(3, 12)
(3, 13)
)]
#[case::scripts(
indoc ! {r#"
Expand All @@ -171,14 +171,14 @@ mod tests {
[project]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
scripts.a = "b"
scripts.c = "d"
"#},
2,
true,
(3, 8)
(3, 9)
)]
#[case::subsubtable(
indoc ! {r"
Expand All @@ -196,7 +196,7 @@ mod tests {
[project]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
[tool.coverage]
Expand All @@ -210,7 +210,7 @@ mod tests {
"#},
2,
true,
(3, 8)
(3, 9)
)]
#[case::array_of_tables(
indoc ! {r#"
Expand Down Expand Up @@ -240,7 +240,7 @@ mod tests {
"#},
2,
true,
(3, 8)
(3, 9)
)]
#[case::unstable_issue_18(
indoc ! {r#"
Expand Down Expand Up @@ -270,7 +270,7 @@ mod tests {
"#},
2,
true,
(3, 8)
(3, 9)
)]
fn test_format_toml(
#[case] start: &str,
Expand All @@ -284,7 +284,7 @@ mod tests {
indent,
keep_full_version,
max_supported_python,
min_supported_python: (3, 8),
min_supported_python: (3, 9),
};
let got = format_toml(start, &settings);
assert_eq!(got, expected);
Expand All @@ -307,8 +307,8 @@ mod tests {
column_width: 1,
indent: 2,
keep_full_version: false,
max_supported_python: (3, 8),
min_supported_python: (3, 8),
max_supported_python: (3, 9),
min_supported_python: (3, 9),
};
let got = format_toml(start.as_str(), &settings);
let expected = read_to_string(data.join("ruff-order.expected.toml")).unwrap();
Expand Down Expand Up @@ -336,8 +336,8 @@ mod tests {
column_width: 80,
indent: 4,
keep_full_version: false,
max_supported_python: (3, 12),
min_supported_python: (3, 12),
max_supported_python: (3, 13),
min_supported_python: (3, 13),
};
let got = format_toml(start, &settings);
let expected = indoc! {r#"
Expand All @@ -349,7 +349,7 @@ mod tests {
name = "beta"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"e>=1.5",
Expand Down
Loading

0 comments on commit b8bf9ec

Please sign in to comment.