From 63742b4fb565a64cb792146deced0a065f8a2b44 Mon Sep 17 00:00:00 2001 From: Pre-commit automation Date: Sun, 1 Feb 2026 00:43:55 +0000 Subject: [PATCH 1/2] chore: pre-commit autoupdate --- .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 5a3abe8..fd5ae4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,20 +13,20 @@ repos: exclude: template - id: check-added-large-files - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.9.21 + rev: 0.9.28 hooks: - id: uv-lock - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.14.10' + rev: 'v0.14.14' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black - repo: https://github.com/adrienverge/yamllint.git - rev: v1.37.1 + rev: v1.38.0 hooks: - id: yamllint exclude: template From 5e1fc674d34d3c92b825570d5ea494ddae3fb54b Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Mon, 2 Feb 2026 12:59:18 +0100 Subject: [PATCH 2/2] Fix black failures --- src/mozilla_taskgraph/config.py | 6 ++---- src/mozilla_taskgraph/transforms/replicate.py | 6 ++---- .../transforms/scriptworker/release_artifacts.py | 1 + .../transforms/scriptworker/shipit/mark_as_shipped.py | 8 ++------ 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/mozilla_taskgraph/config.py b/src/mozilla_taskgraph/config.py index a02b524..399eddc 100644 --- a/src/mozilla_taskgraph/config.py +++ b/src/mozilla_taskgraph/config.py @@ -12,15 +12,13 @@ }, Optional( "version-parser", - description=dedent( - """ + description=dedent(""" Python path of the form ``:`` pointing to a function that takes a set of parameters as input and returns the version string to use for release tasks. Defaults to ``mozilla_taskgraph.version:default_parser``. - """.lstrip() - ), + """.lstrip()), ): str, } ) diff --git a/src/mozilla_taskgraph/transforms/replicate.py b/src/mozilla_taskgraph/transforms/replicate.py index 4550b2e..b834e1b 100644 --- a/src/mozilla_taskgraph/transforms/replicate.py +++ b/src/mozilla_taskgraph/transforms/replicate.py @@ -31,8 +31,7 @@ ): { Required( "target", - description=dedent( - """ + description=dedent(""" Define which tasks to target for replication. Each item in the list can be either: @@ -42,8 +41,7 @@ If any of the resolved tasks are a Decision task, targeted tasks will be derived from the `task-graph.json` artifact. - """.lstrip() - ), + """.lstrip()), ): [str], Optional( "include-attrs", diff --git a/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py b/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py index c0066a1..6e47cb5 100644 --- a/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py +++ b/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py @@ -6,6 +6,7 @@ under 'public/build' and adds the corresponding attribute needed by downstream release tasks. """ + import os from taskgraph.transforms.base import TransformSequence diff --git a/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py b/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py index 75fabe4..425a745 100644 --- a/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py +++ b/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py @@ -60,15 +60,11 @@ def make_task_description(config, tasks): if not product: config_path = os.path.join(config.graph_config.root_dir, "config.yml") - raise Exception( - dedent( - f""" + raise Exception(dedent(f""" Can't determine ShipIt product! Define it as `shipit-product` in the task definition, or as `shipit.product` - in {config_path}.""".lstrip() - ) - ) + in {config_path}.""".lstrip())) task.setdefault("label", task.pop("name", "mark-as-shipped")) task["description"] = f"Mark {product} as shipped in Ship-It"