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

Drop 3.8 support #59

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ license.file = "LICENSE.txt"
authors = [
{ name = "Bernat Gabor", email = "[email protected]" },
]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
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
Loading