def validate_config(_config): lingam_schema = voluptuous.Schema({ "module": voluptuous.And(basestring, vu.NoSpaceCharacter()), "threshold": float }, required=True) return lingam_schema(_config)