Skip to content

Commit 7963db4

Browse files
authored
Fix pre-commit checks on Python 3.14 (#10500)
1 parent 843c352 commit 7963db4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ repos:
128128
- id: rstcheck
129129
args: ["--report-level=warning"]
130130
files: ^(doc/(.*/)*.*\.rst)
131-
additional_dependencies: [Sphinx==7.4.3]
131+
# TODO remove pydantic once 2.12.0 is released
132+
additional_dependencies:
133+
["Sphinx==7.4.3", "pydantic>=2.12.0a1;python_version>='3.14'"]
132134
- repo: https://github.com/pre-commit/mirrors-mypy
133135
rev: v1.17.1
134136
hooks:

tests/test_check_parallel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
import argparse
1212
import os
1313
import sys
14-
from concurrent.futures import ProcessPoolExecutor
15-
from concurrent.futures.process import BrokenProcessPool
14+
from concurrent.futures.process import BrokenProcessPool, ProcessPoolExecutor
1615
from pathlib import Path
1716
from pickle import PickleError
1817
from typing import TYPE_CHECKING

0 commit comments

Comments
 (0)