def _is_config_file(fp):
    """
    Check if a file can be parsed as yaml.
    """
    t1 = fp.endswith('json') or fp.endswith('yaml') or fp.endswith('yml')
    fp_name = fp.split('/')[-1]
    t2 = not (fp_name.startswith('_') or fp_name.startswith('.'))
    return t1 and t2
