def test_gpg_passphrase(
- signing_gpg_dir: str, signing_key_fp: str, passphrase: str
+ signing_gpg_dir: str,
+ signing_key_fp: str,
+ passphrase: str,
+ other_state: dict[str, any],
):
"""Checks if the given gpg passphrase works with the gpg signing key."""
other_state["signing_gpg_dir"],
other_state["signing_gpg_key_fp"],
other_state["signing_gpg_pass"],
+ other_state,
):
sys.exit(1)
elif args.config:
other_state["signing_gpg_dir"],
other_state["signing_gpg_key_fp"],
other_state["signing_gpg_pass"],
+ other_state,
):
sys.exit(1)
if "editor" in d: