Skip to content

Commit 44f42ca

Browse files
authored
Add support for Python 3.14 (#307)
* Add Python version 3.14 * Update Python versions in GitHub Actions workflow * Bump version. * Pre-commit hooks bump.
1 parent 4fc2dfa commit 44f42ca

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-24.04
2323
strategy:
2424
matrix:
25-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10']
25+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy3.10']
2626
env:
2727
# Configure a constant location for the uv cache
2828
UV_CACHE_DIR: /tmp/.uv-cache

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
exclude: helm/
1616
args: [ --unsafe ]
1717
- repo: https://github.com/charliermarsh/ruff-pre-commit
18-
rev: "v0.12.10"
18+
rev: "v0.14.0"
1919
hooks:
2020
- id: ruff
2121
args: [--fix, --exit-non-zero-on-fix]

mocket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
"FakeSSLContext",
3232
)
3333

34-
__version__ = "3.13.11"
34+
__version__ = "3.14.0"

mocket/mocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class Mocket:
2121
_socket_pairs: ClassVar[dict[Address, tuple[int, int]]] = {}
22-
_address: ClassVar[Address] = (None, None)
22+
_address: ClassVar[Address | tuple[None, None]] = (None, None)
2323
_entries: ClassVar[dict[Address, list[MocketEntry]]] = collections.defaultdict(list)
2424
_requests: ClassVar[list] = []
2525
_record_storage: ClassVar[MocketRecordStorage | None] = None

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2223
"Programming Language :: Python :: Implementation :: CPython",
2324
"Programming Language :: Python :: Implementation :: PyPy",
2425
"Topic :: Software Development",

0 commit comments

Comments
 (0)