Drop support for Python 3.13

Python 3.14 evaluates annotations lazily (PEP 649),
so forward references need no quotes.

We make the tool targets, the lock files,
and the CI matrix follow the new minimum.

In order to use the new features,
we must drop support for Python 3.13
This commit is contained in:
Alexander Hess 2026-12-03 13:02:41 +01:00
commit ed739ed756
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -28,12 +28,11 @@ readme = "README.md"
classifiers = [
# `nox` loads all `SUPPORTED_PYTHONS` listed here
# => The test suite runs with each of them in isolated environments
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
requires-python = ">=3.13,<4.0"
requires-python = ">=3.14,<4.0"
# Package => Code developed in *.py files and packaged under src/velofy
@ -164,7 +163,7 @@ remove-unused-variables = true
[tool.black]
target-version = ["py313"]
target-version = ["py314"]
line-length = 88
@ -435,7 +434,7 @@ force_single_line = true
cache_dir = ".cache/mypy"
# Check against the oldest supported Python version, not the one running `mypy`
python_version = "3.13"
python_version = "3.14"
# Check the interior of functions without type annotations
check_untyped_defs = true
@ -527,7 +526,7 @@ ignore_missing_imports = true
# See: https://microsoft.github.io/pyright/#/configuration
# Check against the oldest supported Python version, not the one running `pyright`
pythonVersion = "3.13"
pythonVersion = "3.14"
# Treat libraries without type annotations as `Any`, like `mypy` does
useLibraryCodeForTypes = false
@ -577,7 +576,7 @@ cache-dir = ".cache/ruff"
src = ["src"]
target-version = "py313"
target-version = "py314"
line-length = 88