diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecae4cd1e..2999f1ab5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,11 +41,13 @@ repos: hooks: - id: conventional-pre-commit stages: [commit-msg] -# TODO remove 'fetch-content' once Gecko no longer needs to use it with Python 3.8 +# TODO remove 'fetch-content' and 'run-task' once Gecko no longer needs to use +# them with Python 3.8: # https://bugzilla.mozilla.org/show_bug.cgi?id=1990567#c7 exclude: | (?x)^( src/taskgraph/run-task/fetch-content | src/taskgraph/run-task/robustcheckout.py | + src/taskgraph/run-task/run-task | taskcluster/scripts/external_tools ) diff --git a/src/taskgraph/run-task/run-task b/src/taskgraph/run-task/run-task index 17c4f02e8..c7a3fada0 100755 --- a/src/taskgraph/run-task/run-task +++ b/src/taskgraph/run-task/run-task @@ -31,7 +31,7 @@ import time import urllib.error import urllib.request from pathlib import Path -from typing import Optional +from typing import Dict, Optional SECRET_BASEURL_TPL = "{}/secrets/v1/secret/{{}}".format( os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster").rstrip("/") @@ -573,7 +573,7 @@ def git_fetch( remote: str = "origin", tags: bool = False, shallow: bool = False, - env: Optional[dict[str, str]] = None, + env: Optional[Dict[str, str]] = None, ): args = ["git", "fetch"] if tags: