From f9fa3e1b2bd682363983e2d11b746ea98c35abd0 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 12 Nov 2026 13:16:31 +0200 Subject: [PATCH 1/2] Add support for Python 3.16 --- .github/workflows/test.yml | 2 ++ pyproject.toml | 10 +++++++--- tox.ini | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30de11b5..c3861ca8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,8 @@ jobs: python-version: - "pypy3.12" - "pypy3.11" + - "3.16t" + - "3.16" - "3.15t" - "3.15" - "3.14t" diff --git a/pyproject.toml b/pyproject.toml index 63817fec..ce1f6593 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", + "Programming Language :: Python :: 3.16", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Text Processing", @@ -101,7 +102,7 @@ lint.pydocstyle.convention = "google" lint.future-annotations = true [tool.pyproject-fmt] -max_supported_python = "3.15" +max_supported_python = "3.16" [tool.mypy] strict = true @@ -110,8 +111,11 @@ num_workers = 4 show_error_codes = true [tool.pytest] -addopts = [ "--color=yes" ] -filterwarnings = [ "error" ] +filterwarnings = [ + "error", + # pytest-codspeed 5.0.4 supports up to 3.15 + "ignore:Python 3.16 is not officially supported by pytest-codspeed:RuntimeWarning", +] minversion = "9.0" testpaths = [ "tests" ] diff --git a/tox.ini b/tox.ini index 12acefef..a657b852 100644 --- a/tox.ini +++ b/tox.ini @@ -6,8 +6,8 @@ env_list = lint mypy py{py3} - py{311-315} - py{314-315}t + py{311-316} + py{314-316}t [testenv] package = editable From 49cfbf64dd96cb35c67bbd3b5725552408f9a47e Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 12 Nov 2026 13:20:18 +0200 Subject: [PATCH 2/2] Re-enable doctest --- pyproject.toml | 3 ++- tox.ini | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ce1f6593..98754046 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,13 +111,14 @@ num_workers = 4 show_error_codes = true [tool.pytest] +addopts = [ "--doctest-modules" ] filterwarnings = [ "error", # pytest-codspeed 5.0.4 supports up to 3.15 "ignore:Python 3.16 is not officially supported by pytest-codspeed:RuntimeWarning", ] minversion = "9.0" -testpaths = [ "tests" ] +testpaths = [ "src", "tests" ] [tool.coverage] run.disable_warnings = [ "no-sysmon" ] # 3.11 diff --git a/tox.ini b/tox.ini index a657b852..05c05624 100644 --- a/tox.ini +++ b/tox.ini @@ -56,6 +56,3 @@ deps = babel commands = pybabel --quiet compile --directory src/humanize/locale --domain humanize - -[pytest] -addopts = --color=yes --doctest-modules