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..98754046 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,10 +111,14 @@ num_workers = 4 show_error_codes = true [tool.pytest] -addopts = [ "--color=yes" ] -filterwarnings = [ "error" ] +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 12acefef..05c05624 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 @@ -56,6 +56,3 @@ deps = babel commands = pybabel --quiet compile --directory src/humanize/locale --domain humanize - -[pytest] -addopts = --color=yes --doctest-modules