import hashlib


def hash_file(file_path: str) -> str:
    """
    return sha1 hash of the file
    """
    with open(file_path, "r") as content_file:
        hash_object = hashlib.sha1(content_file.read().encode("utf-8"))
        return hash_object.hexdigest()