From a28960a8d22c1f4157c610fa076dc727b906f6ca Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Thu, 12 Nov 2026 15:41:30 +0100 Subject: [PATCH 1/2] ci: add autofix.ci workflow --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/autofix.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/autofix.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 914ad69d..ad5355d4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,13 @@ updates: actions-deps: patterns: - "*" + - package-ecosystem: pre-commit + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + pre-commit: + patterns: + - "*" diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml new file mode 100644 index 00000000..4494aaa8 --- /dev/null +++ b/.github/workflows/autofix.yaml @@ -0,0 +1,31 @@ +# The workflow name is mandated by autofix.ci. +# It needs to be a dedicated workflow, as autofix.ci times out on long runs. +name: autofix.ci + +on: + pull_request: + +env: + FORCE_COLOR: "1" + UV_COMPILE_BYTECODE: "1" + +permissions: + contents: read + +jobs: + lint: + name: Pre-commit checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + filter: blob:none + persist-credentials: false + - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + with: + enable-cache: true + - name: Run pre-commit hooks + run: uvx prek run --all-files --show-diff-on-failure --color=always + - uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4 + if: ${{ !cancelled() }} From 81f6af3c79ba9556d9353591b0334767f2385e2c Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2026 15:04:05 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- src/spatialdata_plot/pl/basic.py | 2 +- src/spatialdata_plot/pl/interactive/_session.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spatialdata_plot/pl/basic.py b/src/spatialdata_plot/pl/basic.py index 8653a8a6..a4f542e9 100644 --- a/src/spatialdata_plot/pl/basic.py +++ b/src/spatialdata_plot/pl/basic.py @@ -57,10 +57,10 @@ _split_colorbar_params, ) from spatialdata_plot.pl.render_params import ( - BBox, CBAR_DEFAULT_FRACTION, CBAR_DEFAULT_LOCATION, CBAR_DEFAULT_PAD, + BBox, ChannelLegendEntry, CmapParams, ColorbarSpec, diff --git a/src/spatialdata_plot/pl/interactive/_session.py b/src/spatialdata_plot/pl/interactive/_session.py index b6913044..cc7c17e9 100644 --- a/src/spatialdata_plot/pl/interactive/_session.py +++ b/src/spatialdata_plot/pl/interactive/_session.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Any, Literal +from typing import Literal import geopandas as gpd import ipywidgets as W