Skip to content

Commit 3c7fea5

Browse files
authored
Add support for Python 3.16 (#515)
2 parents 874eeb7 + 49cfbf6 commit 3c7fea5

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
python-version:
1818
- "pypy3.12"
1919
- "pypy3.11"
20+
- "3.16t"
21+
- "3.16"
2022
- "3.15t"
2123
- "3.15"
2224
- "3.14t"

‎pyproject.toml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Programming Language :: Python :: 3.13",
2929
"Programming Language :: Python :: 3.14",
3030
"Programming Language :: Python :: 3.15",
31+
"Programming Language :: Python :: 3.16",
3132
"Programming Language :: Python :: Implementation :: CPython",
3233
"Programming Language :: Python :: Implementation :: PyPy",
3334
"Topic :: Text Processing",
@@ -101,7 +102,7 @@ lint.pydocstyle.convention = "google"
101102
lint.future-annotations = true
102103

103104
[tool.pyproject-fmt]
104-
max_supported_python = "3.15"
105+
max_supported_python = "3.16"
105106

106107
[tool.mypy]
107108
strict = true
@@ -110,10 +111,14 @@ num_workers = 4
110111
show_error_codes = true
111112

112113
[tool.pytest]
113-
addopts = [ "--color=yes" ]
114-
filterwarnings = [ "error" ]
114+
addopts = [ "--doctest-modules" ]
115+
filterwarnings = [
116+
"error",
117+
# pytest-codspeed 5.0.4 supports up to 3.15
118+
"ignore:Python 3.16 is not officially supported by pytest-codspeed:RuntimeWarning",
119+
]
115120
minversion = "9.0"
116-
testpaths = [ "tests" ]
121+
testpaths = [ "src", "tests" ]
117122

118123
[tool.coverage]
119124
run.disable_warnings = [ "no-sysmon" ] # 3.11

‎tox.ini‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ env_list =
66
lint
77
mypy
88
py{py3}
9-
py{311-315}
10-
py{314-315}t
9+
py{311-316}
10+
py{314-316}t
1111

1212
[testenv]
1313
package = editable
@@ -56,6 +56,3 @@ deps =
5656
babel
5757
commands =
5858
pybabel --quiet compile --directory src/humanize/locale --domain humanize
59-
60-
[pytest]
61-
addopts = --color=yes --doctest-modules

0 commit comments

Comments
 (0)