def validate_file(data):
    with open('requirements_all.txt', 'r') as req_file:
        return data == ''.join(req_file)
Validate if requirements_all.txt is up to date.
dataset/ETHPy150Open home-assistant/home-assistant/script/gen_requirements_all.py/validate_file