chore: bump minimum Python to 3.12

Update requires-python, classifiers, pyright pythonVersion, ruff
target-version, and mypy python_version to 3.12. Remove 3.9/3.10/3.11
from CI test matrix, keep 3.12 and 3.13.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
Zoo Queen
2026-02-20 21:29:01 -08:00
co-authored by Hanzo Dev
parent e67acae9db
commit c4c60bd9cb
2 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
+4 -7
View File
@@ -18,13 +18,10 @@ dependencies = [
"h11>=0.16.0",
"urllib3>=2.6.0",
]
requires-python = ">= 3.9"
requires-python = ">= 3.12"
classifiers = [
"Typing :: Typed",
"Intended Audience :: Developers",
"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",
"Operating System :: OS Independent",
@@ -178,7 +175,7 @@ filterwarnings = [
# there are a couple of flags that are still disabled by
# default in strict mode as they are experimental and niche.
typeCheckingMode = "strict"
pythonVersion = "3.8"
pythonVersion = "3.12"
exclude = [
"_dev",
@@ -229,7 +226,7 @@ reportOptionalIterable = false
[tool.ruff]
line-length = 120
output-format = "grouped"
target-version = "py38"
target-version = "py312"
exclude = [
"pkg/hanzo-agent", # submodule - linted separately
"pkg/hanzo-memory", # needs careful review - has complex redefinitions
@@ -407,7 +404,7 @@ extra-standard-library = ["typing_extensions"]
known-first-party = ["hanzoai", "tests"]
[tool.mypy]
python_version = "3.8"
python_version = "3.12"
ignore_missing_imports = true
# Relax type checking - SDK has many optional dependencies and dynamic imports
check_untyped_defs = false