Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/mozilla_taskgraph/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
},
Optional(
"version-parser",
description=dedent(
"""
description=dedent("""
Python path of the form ``<module>:<obj>`` 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,
}
)
6 changes: 2 additions & 4 deletions src/mozilla_taskgraph/transforms/replicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down