From 3aa834c2249ef6bd9d0ce0c5f42382afd8131454 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 7 Oct 2025 22:15:19 -0700 Subject: [PATCH 1/2] pre-commit: update versions Signed-off-by: Benjamin Gilbert --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93bffda..9fe75a8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,19 +23,19 @@ repos: args: ["--py39-plus"] - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 6.1.0 hooks: - id: isort name: Reorder python imports with isort - repo: https://github.com/psf/black - rev: 25.1.0 + rev: 25.9.0 hooks: - id: black name: Format python code with black - repo: https://github.com/asottile/blacken-docs - rev: 1.19.1 + rev: 1.20.0 hooks: - id: blacken-docs name: Format python code in documentation @@ -54,7 +54,7 @@ repos: additional_dependencies: [flake8-bugbear, Flake8-pyproject] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + rev: v1.18.2 hooks: - id: mypy name: Check Python types From 5635144ea8e08c83123f36c597c9b1e896342002 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 7 Oct 2025 22:14:17 -0700 Subject: [PATCH 2/2] Update for Python 3.14 Signed-off-by: Benjamin Gilbert --- .github/workflows/python.yml | 10 +++++----- pyproject.toml | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 2aacd0a..c22ec97 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.13' + python-version: '3.14' - name: Install dependencies run: python -m pip install pre-commit - name: Cache pre-commit environments @@ -50,11 +50,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest] - python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14-dev"] + python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] openslide: [system, wheel] include: - os: ubuntu-latest - python-version: "3.13" + python-version: "3.14" openslide: system sdist: sdist steps: @@ -165,7 +165,7 @@ jobs: shell: bash strategy: matrix: - python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14-dev"] + python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] openslide: [zip, wheel] steps: - name: Check out repo @@ -259,7 +259,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.13' + python-version: '3.14' - name: Install Python tools run: | python -m pip install --upgrade pip diff --git a/pyproject.toml b/pyproject.toml index a76799d..d65a584 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Scientific/Engineering :: Bio-Informatics", "Typing :: Typed", ] @@ -51,7 +52,7 @@ openslide = ["py.typed", "*.pyi"] [tool.black] skip-string-normalization = true -target-version = ["py39", "py310", "py311", "py312", "py313"] +target-version = ["py39", "py310", "py311", "py312", "py313", "py314"] # Ref: https://github.com/codespell-project/codespell#using-a-config-file [tool.codespell]