Skip to content

Commit 8ff06e6

Browse files
authored
Merge pull request #415 from Labelbox/ms/uri
uri support
2 parents 4a1a668 + dbdca41 commit 8ff06e6

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

examples/format_notebooks.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
from yapf.yapflib.yapf_api import FormatCode
66

77
BANNER_CELL = {
8-
"cell_type": "markdown",
9-
"id": "db768cda",
8+
"cell_type":
9+
"markdown",
10+
"id":
11+
"db768cda",
1012
"metadata": {},
1113
"source": [
1214
"<td>\n",
@@ -16,16 +18,15 @@
1618
}
1719

1820
LINK_CELL = {
19-
"cell_type": "markdown",
20-
"id": "cb5611d0",
21+
"cell_type":
22+
"markdown",
23+
"id":
24+
"cb5611d0",
2125
"metadata": {},
2226
"source": [
23-
"<td>\n",
24-
"<a href=\"{colab}\" target=\"_blank\"><img\n",
27+
"<td>\n", "<a href=\"{colab}\" target=\"_blank\"><img\n",
2528
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
26-
"</td>\n",
27-
"\n",
28-
"<td>\n",
29+
"</td>\n", "\n", "<td>\n",
2930
"<a href=\"{github}\" target=\"_blank\"><img\n",
3031
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
3132
"</td>"

labelbox/data/serialization/labelbox_v1/label.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def _row_contains(self, substrs) -> bool:
233233

234234
def _is_url(self) -> bool:
235235
return self.row_data.startswith(
236-
("http://", "https://")) or "tileLayerUrl" in self.row_data
236+
("http://", "https://", "gs://",
237+
"s3://")) or "tileLayerUrl" in self.row_data
237238

238239
class Config:
239240
allow_population_by_field_name = True

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ envlist = py36, py37, py38
66
# install pytest in the virtualenv where commands will be executed
77
deps =
88
-rrequirements.txt
9-
pytest
9+
pytest < 7.0.0
1010
pytest-cases
1111
passenv = LABELBOX_TEST_API_KEY_PROD LABELBOX_TEST_API_KEY_STAGING LABELBOX_TEST_ENVIRON
1212
commands = pytest {posargs}

0 commit comments

Comments
 (0)