Make Python 3.14 the MAIN_VERSION #20

Merged
alexander merged 6 commits from python-3.14 into develop 2026-12-02 22:30:08 +01:00

2026-12-02

Make Python 3.14 the MAIN_VERSION
All checks were successful
CI / Checks (Python 3.14) (push) Successful in 2m46s
`requires-python` stays at ">=3.13"; so, `uv.lock` is unchanged
and 3.13 is tested with the "test-with" session.
2026-12-02 21:54:16 +01:00
Pin MAIN_PYTHON in the "init-project" session
Otherwise, `uv` creates ".venv" with the newest installed Python.
2026-12-02 21:49:17 +01:00
Type check against the oldest Python version
Without a configured version, `mypy` and `pyright`
check against the Python that runs them.

With `MAIN_PYTHON` at 3.14, they would accept
`stdlib` APIs and `typing` features new in 3.14.

Yet, `requires-python` promises 3.13;
so, the type checkers must flag such code.

`black` and `ruff` already target 3.13 for the same reason.
2026-12-02 21:42:06 +01:00
Remove flake8-return
It crashes on Python 3.14 (`ast.NameConstant` is gone) and is unmaintained.

`ruff` covers its rules.
2026-12-02 21:39:21 +01:00
Remove flake8-pie
It crashes on Python 3.14 (`ast.Str` is gone) and is unmaintained.

`ruff` covers its rules.
2026-12-02 21:27:27 +01:00
Test with Python 3.14 and 3.15
The new "test-with" session runs the test suite with non-main Python versions;
yet, `MAIN_PYTHON` stays at 3.13
2026-12-02 17:43:05 +01:00