def is_ignore_file(file_path, blueprints_dict):
    """Should the file be ignored based on some conditions."""
    if '__pycache__' in file_path:
        return True
    if file_path.endswith('.pyc'):
        return True
    for blueprint_name, blueprint_kwargs in blueprints_dict.items():
        blueprint_placeholder = '/BP_{bp_name_upper}/'.format(bp_name_upper
            =blueprint_name.upper())
        if blueprint_placeholder in file_path and blueprint_kwargs['include'
            ] is not True:
            print('IGNORING BLUEPRINT FILE: {}: {}'.format(blueprint_name,
                file_path))
            return True
    return False
