def find_undocumented_settings(directive='.. setting:: '): settings = dict(flatten(NAMESPACES)) all = set(settings) documented = set(line.strip()[len(directive):].strip() for line in _input() if line.strip().startswith(directive)) return [setting for setting in all ^ documented if not is_ignored(setting, settings[setting])]
def find_undocumented_settings(directive='.. setting:: '): settings = dict(flatten(NAMESPACES)) all = set(settings) documented = set( line.strip()[len(directive):].strip() for line in _input() if line.strip().startswith(directive) ) return [setting for setting in all ^ documented if not is_ignored(setting, settings[setting])]