def METHOD_NAME(self, commit: git.Commit) -> bool:
    """
    Check the validity of the commit signature.
    Key needs to be already present.
    """
    commit_status = self.get_commit_signature_status(commit)
    if commit_status in VALID_SIGNATURE_STATUSES:
        logger.debug(f"Commit {commit.hexsha!r} signature is valid.")
        return True
    logger.warning(f"Commit {commit.hexsha!r} signature is not valid.")
    return False