Skip to content

Commit 6bd4912

Browse files
committed
Python 3.14 support
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 239cc7b commit 6bd4912

File tree

6 files changed

+29
-26
lines changed

6 files changed

+29
-26
lines changed

.github/workflows/check.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
env:
22+
- "3.14t"
23+
- "3.14"
2224
- "3.13"
2325
- "3.12"
2426
- "3.11"
@@ -38,9 +40,9 @@ jobs:
3840
cache-dependency-glob: "pyproject.toml"
3941
github-token: ${{ secrets.GITHUB_TOKEN }}
4042
- name: Install tox
41-
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
43+
run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv
4244
- name: Install Python
43-
if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
45+
if: startsWith(matrix.env, '3.') && matrix.env != '3.14'
4446
run: uv python install --python-preference only-managed ${{ matrix.env }}
4547
- name: Setup test suite
4648
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache-dependency-glob: "pyproject.toml"
2121
github-token: ${{ secrets.GITHUB_TOKEN }}
2222
- name: Build package
23-
run: uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist
23+
run: uv build --python 3.14 --python-preference only-managed --sdist --wheel . --out-dir dist
2424
- name: Store the distribution packages
2525
uses: actions/upload-artifact@v4
2626
with:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "v2.7.0"
23+
rev: "v2.8.0"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.13.3"
27+
rev: "v0.14.0"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff
@@ -34,8 +34,8 @@ repos:
3434
hooks:
3535
- id: prettier
3636
additional_dependencies:
37-
- prettier@3.5.1
38-
- "@prettier/[email protected].1"
37+
- prettier@3.6.2
38+
- "@prettier/[email protected].2"
3939
- repo: meta
4040
hooks:
4141
- id: check-hooks-apply

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ The following configuration options are accepted:
7474
[napoleon_use_rtype](https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#confval-napoleon_use_rtype)
7575
to avoid generation of duplicate or redundant return type information.
7676
- `typehints_defaults` (default: `None`): If `None`, defaults are not added. Otherwise, adds a default annotation:
77-
7877
- `'comma'` adds it after the type, changing Sphinx’ default look to “**param** (_int_, default: `1`) -- text”.
7978
- `'braces'` adds `(default: ...)` after the type (useful for numpydoc like styles).
8079
- `'braces-after'` adds `(default: ...)` at the end of the parameter documentation text instead.

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend = "hatchling.build"
33
requires = [
4-
"hatch-vcs>=0.4",
4+
"hatch-vcs>=0.5",
55
"hatchling>=1.27",
66
]
77

@@ -40,20 +40,20 @@ dynamic = [
4040
"version",
4141
]
4242
dependencies = [
43-
"sphinx>=8.2",
43+
"sphinx>=8.2.3",
4444
]
4545
optional-dependencies.docs = [
46-
"furo>=2024.8.6",
46+
"furo>=2025.9.25",
4747
]
4848
optional-dependencies.testing = [
4949
"covdefaults>=2.3",
50-
"coverage>=7.6.12",
51-
"defusedxml>=0.7.1", # required by sphinx.testing
52-
"diff-cover>=9.2.3",
53-
"pytest>=8.3.4",
54-
"pytest-cov>=6",
55-
"sphobjinv>=2.3.1.2",
56-
"typing-extensions>=4.12.2",
50+
"coverage>=7.10.7",
51+
"defusedxml>=0.7.1", # required by sphinx.testing
52+
"diff-cover>=9.7.1",
53+
"pytest>=8.4.2",
54+
"pytest-cov>=7",
55+
"sphobjinv>=2.3.1.3",
56+
"typing-extensions>=4.15",
5757
]
5858
urls.Changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/releases"
5959
urls.Homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints"

tox.ini

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[tox]
22
requires =
3-
tox>=4.24.1
4-
tox-uv>=1.24
3+
tox>=4.30.2
4+
tox-uv>=1.28
55
env_list =
66
fix
7+
3.14
78
3.13
89
3.12
910
3.11
1011
type
12+
3.14t
1113
pkg_meta
1214
skip_missing_interpreters = true
1315

@@ -37,15 +39,15 @@ commands =
3739
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
3840
skip_install = true
3941
deps =
40-
pre-commit-uv>=4.1.4
42+
pre-commit-uv>=4.1.5
4143
commands =
4244
pre-commit run --all-files --show-diff-on-failure
4345

4446
[testenv:type]
4547
description = run type check on code base
4648
deps =
47-
mypy==1.15
48-
types-docutils>=0.21.0.20250604
49+
mypy==1.18.2
50+
types-docutils>=0.22.2.20250924
4951
commands =
5052
mypy src
5153
mypy tests
@@ -54,9 +56,9 @@ commands =
5456
description = check that the long description is valid
5557
skip_install = true
5658
deps =
57-
check-wheel-contents>=0.6.1
58-
twine>=6.1
59-
uv>=0.6.1
59+
check-wheel-contents>=0.6.3
60+
twine>=6.2
61+
uv>=0.8.22
6062
commands =
6163
uv build --sdist --wheel --out-dir {env_tmp_dir} .
6264
twine check {env_tmp_dir}{/}*

0 commit comments

Comments
 (0)