Skip to content

Commit 8890c43

Browse files
committed
build: bump minimum python version to 3.10
- Update project metadata and tool configurations (ruff, mypy) to target Python 3.10. - Remove `convert_system_message_to_human` parameter from Gemini model test expectations.
1 parent 86f4137 commit 8890c43

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version = "2.0.0"
1111

1212
description = "Commitai helps you generate git commit messages using AI"
1313
readme = "README.md"
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
license = { file = "LICENSE" }
1616
authors = [
1717
{ name = "Luis Guilherme", email = "lgpelin92@gmail.com" },
@@ -22,7 +22,6 @@ classifiers = [
2222
"License :: OSI Approved :: MIT License",
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
2827
"Programming Language :: Python :: 3.12",
@@ -64,7 +63,7 @@ path = "commitai/__init__.py"
6463
[tool.ruff]
6564
# Base settings applied to both linter and formatter
6665
line-length = 88
67-
target-version = "py39" # Set base target version
66+
target-version = "py310" # Set base target version
6867

6968
[tool.ruff.lint]
7069
select = [
@@ -90,7 +89,7 @@ skip-magic-trailing-comma = false
9089
line-ending = "auto"
9190

9291
[tool.mypy]
93-
python_version = "3.9" # Consistent with requires-python
92+
python_version = "3.10" # Consistent with requires-python
9493
warn_return_any = true
9594
warn_unused_configs = true
9695
ignore_missing_imports = true

tests/test_cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def test_generate_default_gemini(mock_generate_deps):
116116
mock_generate_deps["google_class"].assert_called_with(
117117
model="gemini-3-flash-preview",
118118
google_api_key="fake_google_key",
119-
convert_system_message_to_human=True,
120119
)
121120
mock_generate_deps["agent_instance"].invoke.assert_called_once()
122121
mock_generate_deps["commit"].assert_called_once_with("Generated commit message")
@@ -139,7 +138,6 @@ def test_generate_deep_flag(mock_generate_deps):
139138
mock_generate_deps["google_class"].assert_called_with(
140139
model="gemini-3-pro-preview",
141140
google_api_key="fake_google_key",
142-
convert_system_message_to_human=True,
143141
)
144142

145143

0 commit comments

Comments
 (0)