update poetry files (#7)
Browse files* update poetry files
* update CI
* fix for CI
* update
- .github/workflows/ci.yaml +3 -7
- MSCOCO.py +8 -9
- poetry.lock +26 -141
- pyproject.toml +9 -7
.github/workflows/ci.yaml
CHANGED
@@ -30,19 +30,15 @@ jobs:
|
|
30 |
|
31 |
- name: Format
|
32 |
run: |
|
33 |
-
poetry run
|
34 |
|
35 |
- name: Lint
|
36 |
run: |
|
37 |
-
poetry run ruff .
|
38 |
|
39 |
- name: Type check
|
40 |
run: |
|
41 |
-
poetry run mypy .
|
42 |
-
--ignore-missing-imports \
|
43 |
-
--no-strict-optional \
|
44 |
-
--no-site-packages \
|
45 |
-
--cache-dir=/dev/null
|
46 |
|
47 |
- name: Run tests
|
48 |
run: |
|
|
|
30 |
|
31 |
- name: Format
|
32 |
run: |
|
33 |
+
poetry run ruff format --check --diff .
|
34 |
|
35 |
- name: Lint
|
36 |
run: |
|
37 |
+
poetry run ruff check --output-format=github .
|
38 |
|
39 |
- name: Type check
|
40 |
run: |
|
41 |
+
poetry run mypy .
|
|
|
|
|
|
|
|
|
42 |
|
43 |
- name: Run tests
|
44 |
run: |
|
MSCOCO.py
CHANGED
@@ -373,7 +373,7 @@ class InstancesAnnotationData(AnnotationData):
|
|
373 |
#
|
374 |
# for InstancesAnnotationData
|
375 |
#
|
376 |
-
segmentation=segmentation_mask,
|
377 |
area=json_dict["area"],
|
378 |
iscrowd=iscrowd,
|
379 |
bbox=json_dict["bbox"],
|
@@ -454,7 +454,7 @@ class PersonKeypointsAnnotationData(InstancesAnnotationData):
|
|
454 |
#
|
455 |
# for InstancesAnnotationData
|
456 |
#
|
457 |
-
segmentation=segmentation_mask,
|
458 |
area=json_dict["area"],
|
459 |
iscrowd=iscrowd,
|
460 |
bbox=json_dict["bbox"],
|
@@ -596,9 +596,8 @@ class MsCocoProcessor(object, metaclass=abc.ABCMeta):
|
|
596 |
raise NotImplementedError
|
597 |
|
598 |
@abc.abstractmethod
|
599 |
-
def load_data(
|
600 |
-
|
601 |
-
):
|
602 |
raise NotImplementedError
|
603 |
|
604 |
@abc.abstractmethod
|
@@ -964,8 +963,8 @@ class MsCocoDataset(ds.GeneratorBasedBuilder):
|
|
964 |
return config.task
|
965 |
|
966 |
def _info(self) -> ds.DatasetInfo:
|
967 |
-
processor: MsCocoProcessor = self.config.processor
|
968 |
-
features = processor.get_features(decode_rle=self.config.decode_rle)
|
969 |
return ds.DatasetInfo(
|
970 |
description=_DESCRIPTION,
|
971 |
citation=_CITATION,
|
@@ -1015,7 +1014,7 @@ class MsCocoDataset(ds.GeneratorBasedBuilder):
|
|
1015 |
ann_dir = os.path.join(base_annotation_dir, "annotations")
|
1016 |
ann_file_path = os.path.join(ann_dir, f"{self.task}_{split}{self.year}.json")
|
1017 |
|
1018 |
-
processor: MsCocoProcessor = self.config.processor
|
1019 |
|
1020 |
ann_json = processor.load_annotation_json(ann_file_path=ann_file_path)
|
1021 |
|
@@ -1030,7 +1029,7 @@ class MsCocoDataset(ds.GeneratorBasedBuilder):
|
|
1030 |
else None
|
1031 |
)
|
1032 |
|
1033 |
-
config: MsCocoConfig = self.config
|
1034 |
yield from processor.generate_examples(
|
1035 |
annotations=processor.load_data(
|
1036 |
ann_dicts=ann_json["annotations"],
|
|
|
373 |
#
|
374 |
# for InstancesAnnotationData
|
375 |
#
|
376 |
+
segmentation=segmentation_mask, # type: ignore
|
377 |
area=json_dict["area"],
|
378 |
iscrowd=iscrowd,
|
379 |
bbox=json_dict["bbox"],
|
|
|
454 |
#
|
455 |
# for InstancesAnnotationData
|
456 |
#
|
457 |
+
segmentation=segmentation_mask, # type: ignore
|
458 |
area=json_dict["area"],
|
459 |
iscrowd=iscrowd,
|
460 |
bbox=json_dict["bbox"],
|
|
|
596 |
raise NotImplementedError
|
597 |
|
598 |
@abc.abstractmethod
|
599 |
+
def load_data(self, ann_dicts: List[JsonDict], tqdm_desc: str = "", **kwargs):
|
600 |
+
assert tqdm_desc != "", "tqdm_desc must be provided."
|
|
|
601 |
raise NotImplementedError
|
602 |
|
603 |
@abc.abstractmethod
|
|
|
963 |
return config.task
|
964 |
|
965 |
def _info(self) -> ds.DatasetInfo:
|
966 |
+
processor: MsCocoProcessor = self.config.processor # type: ignore
|
967 |
+
features = processor.get_features(decode_rle=self.config.decode_rle) # type: ignore
|
968 |
return ds.DatasetInfo(
|
969 |
description=_DESCRIPTION,
|
970 |
citation=_CITATION,
|
|
|
1014 |
ann_dir = os.path.join(base_annotation_dir, "annotations")
|
1015 |
ann_file_path = os.path.join(ann_dir, f"{self.task}_{split}{self.year}.json")
|
1016 |
|
1017 |
+
processor: MsCocoProcessor = self.config.processor # type: ignore
|
1018 |
|
1019 |
ann_json = processor.load_annotation_json(ann_file_path=ann_file_path)
|
1020 |
|
|
|
1029 |
else None
|
1030 |
)
|
1031 |
|
1032 |
+
config: MsCocoConfig = self.config # type: ignore
|
1033 |
yield from processor.generate_examples(
|
1034 |
annotations=processor.load_data(
|
1035 |
ann_dicts=ann_json["annotations"],
|
poetry.lock
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# This file is automatically @generated by Poetry 1.
|
2 |
|
3 |
[[package]]
|
4 |
name = "aiohttp"
|
@@ -151,52 +151,6 @@ docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-
|
|
151 |
tests = ["attrs[tests-no-zope]", "zope-interface"]
|
152 |
tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
|
153 |
|
154 |
-
[[package]]
|
155 |
-
name = "black"
|
156 |
-
version = "23.7.0"
|
157 |
-
description = "The uncompromising code formatter."
|
158 |
-
optional = false
|
159 |
-
python-versions = ">=3.8"
|
160 |
-
files = [
|
161 |
-
{file = "black-23.7.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:5c4bc552ab52f6c1c506ccae05681fab58c3f72d59ae6e6639e8885e94fe2587"},
|
162 |
-
{file = "black-23.7.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:552513d5cd5694590d7ef6f46e1767a4df9af168d449ff767b13b084c020e63f"},
|
163 |
-
{file = "black-23.7.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:86cee259349b4448adb4ef9b204bb4467aae74a386bce85d56ba4f5dc0da27be"},
|
164 |
-
{file = "black-23.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:501387a9edcb75d7ae8a4412bb8749900386eaef258f1aefab18adddea1936bc"},
|
165 |
-
{file = "black-23.7.0-cp310-cp310-win_amd64.whl", hash = "sha256:fb074d8b213749fa1d077d630db0d5f8cc3b2ae63587ad4116e8a436e9bbe995"},
|
166 |
-
{file = "black-23.7.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:b5b0ee6d96b345a8b420100b7d71ebfdd19fab5e8301aff48ec270042cd40ac2"},
|
167 |
-
{file = "black-23.7.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:893695a76b140881531062d48476ebe4a48f5d1e9388177e175d76234ca247cd"},
|
168 |
-
{file = "black-23.7.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:c333286dc3ddca6fdff74670b911cccedacb4ef0a60b34e491b8a67c833b343a"},
|
169 |
-
{file = "black-23.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:831d8f54c3a8c8cf55f64d0422ee875eecac26f5f649fb6c1df65316b67c8926"},
|
170 |
-
{file = "black-23.7.0-cp311-cp311-win_amd64.whl", hash = "sha256:7f3bf2dec7d541b4619b8ce526bda74a6b0bffc480a163fed32eb8b3c9aed8ad"},
|
171 |
-
{file = "black-23.7.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:f9062af71c59c004cd519e2fb8f5d25d39e46d3af011b41ab43b9c74e27e236f"},
|
172 |
-
{file = "black-23.7.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:01ede61aac8c154b55f35301fac3e730baf0c9cf8120f65a9cd61a81cfb4a0c3"},
|
173 |
-
{file = "black-23.7.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:327a8c2550ddc573b51e2c352adb88143464bb9d92c10416feb86b0f5aee5ff6"},
|
174 |
-
{file = "black-23.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1c6022b86f83b632d06f2b02774134def5d4d4f1dac8bef16d90cda18ba28a"},
|
175 |
-
{file = "black-23.7.0-cp38-cp38-win_amd64.whl", hash = "sha256:27eb7a0c71604d5de083757fbdb245b1a4fae60e9596514c6ec497eb63f95320"},
|
176 |
-
{file = "black-23.7.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:8417dbd2f57b5701492cd46edcecc4f9208dc75529bcf76c514864e48da867d9"},
|
177 |
-
{file = "black-23.7.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:47e56d83aad53ca140da0af87678fb38e44fd6bc0af71eebab2d1f59b1acf1d3"},
|
178 |
-
{file = "black-23.7.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:25cc308838fe71f7065df53aedd20327969d05671bac95b38fdf37ebe70ac087"},
|
179 |
-
{file = "black-23.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:642496b675095d423f9b8448243336f8ec71c9d4d57ec17bf795b67f08132a91"},
|
180 |
-
{file = "black-23.7.0-cp39-cp39-win_amd64.whl", hash = "sha256:ad0014efc7acf0bd745792bd0d8857413652979200ab924fbf239062adc12491"},
|
181 |
-
{file = "black-23.7.0-py3-none-any.whl", hash = "sha256:9fd59d418c60c0348505f2ddf9609c1e1de8e7493eab96198fc89d9f865e7a96"},
|
182 |
-
{file = "black-23.7.0.tar.gz", hash = "sha256:022a582720b0d9480ed82576c920a8c1dde97cc38ff11d8d8859b3bd6ca9eedb"},
|
183 |
-
]
|
184 |
-
|
185 |
-
[package.dependencies]
|
186 |
-
click = ">=8.0.0"
|
187 |
-
mypy-extensions = ">=0.4.3"
|
188 |
-
packaging = ">=22.0"
|
189 |
-
pathspec = ">=0.9.0"
|
190 |
-
platformdirs = ">=2"
|
191 |
-
tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
|
192 |
-
typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}
|
193 |
-
|
194 |
-
[package.extras]
|
195 |
-
colorama = ["colorama (>=0.4.3)"]
|
196 |
-
d = ["aiohttp (>=3.7.4)"]
|
197 |
-
jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
|
198 |
-
uvloop = ["uvloop (>=0.15.2)"]
|
199 |
-
|
200 |
[[package]]
|
201 |
name = "certifi"
|
202 |
version = "2023.7.22"
|
@@ -292,20 +246,6 @@ files = [
|
|
292 |
{file = "charset_normalizer-3.2.0-py3-none-any.whl", hash = "sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6"},
|
293 |
]
|
294 |
|
295 |
-
[[package]]
|
296 |
-
name = "click"
|
297 |
-
version = "8.1.7"
|
298 |
-
description = "Composable command line interface toolkit"
|
299 |
-
optional = false
|
300 |
-
python-versions = ">=3.7"
|
301 |
-
files = [
|
302 |
-
{file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},
|
303 |
-
{file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"},
|
304 |
-
]
|
305 |
-
|
306 |
-
[package.dependencies]
|
307 |
-
colorama = {version = "*", markers = "platform_system == \"Windows\""}
|
308 |
-
|
309 |
[[package]]
|
310 |
name = "colorama"
|
311 |
version = "0.4.6"
|
@@ -331,6 +271,7 @@ files = [
|
|
331 |
{file = "contourpy-1.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18a64814ae7bce73925131381603fff0116e2df25230dfc80d6d690aa6e20b37"},
|
332 |
{file = "contourpy-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90c81f22b4f572f8a2110b0b741bb64e5a6427e0a198b2cdc1fbaf85f352a3aa"},
|
333 |
{file = "contourpy-1.1.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:53cc3a40635abedbec7f1bde60f8c189c49e84ac180c665f2cd7c162cc454baa"},
|
|
|
334 |
{file = "contourpy-1.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:1f795597073b09d631782e7245016a4323cf1cf0b4e06eef7ea6627e06a37ff2"},
|
335 |
{file = "contourpy-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0b7b04ed0961647691cfe5d82115dd072af7ce8846d31a5fac6c142dcce8b882"},
|
336 |
{file = "contourpy-1.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:27bc79200c742f9746d7dd51a734ee326a292d77e7d94c8af6e08d1e6c15d545"},
|
@@ -339,6 +280,7 @@ files = [
|
|
339 |
{file = "contourpy-1.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5cec36c5090e75a9ac9dbd0ff4a8cf7cecd60f1b6dc23a374c7d980a1cd710e"},
|
340 |
{file = "contourpy-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f0cbd657e9bde94cd0e33aa7df94fb73c1ab7799378d3b3f902eb8eb2e04a3a"},
|
341 |
{file = "contourpy-1.1.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:181cbace49874f4358e2929aaf7ba84006acb76694102e88dd15af861996c16e"},
|
|
|
342 |
{file = "contourpy-1.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:fb3b7d9e6243bfa1efb93ccfe64ec610d85cfe5aec2c25f97fbbd2e58b531256"},
|
343 |
{file = "contourpy-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:bcb41692aa09aeb19c7c213411854402f29f6613845ad2453d30bf421fe68fed"},
|
344 |
{file = "contourpy-1.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5d123a5bc63cd34c27ff9c7ac1cd978909e9c71da12e05be0231c608048bb2ae"},
|
@@ -347,6 +289,7 @@ files = [
|
|
347 |
{file = "contourpy-1.1.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:317267d915490d1e84577924bd61ba71bf8681a30e0d6c545f577363157e5e94"},
|
348 |
{file = "contourpy-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d551f3a442655f3dcc1285723f9acd646ca5858834efeab4598d706206b09c9f"},
|
349 |
{file = "contourpy-1.1.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7a117ce7df5a938fe035cad481b0189049e8d92433b4b33aa7fc609344aafa1"},
|
|
|
350 |
{file = "contourpy-1.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:d4f26b25b4f86087e7d75e63212756c38546e70f2a92d2be44f80114826e1cd4"},
|
351 |
{file = "contourpy-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bc00bb4225d57bff7ebb634646c0ee2a1298402ec10a5fe7af79df9a51c1bfd9"},
|
352 |
{file = "contourpy-1.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:189ceb1525eb0655ab8487a9a9c41f42a73ba52d6789754788d1883fb06b2d8a"},
|
@@ -355,6 +298,7 @@ files = [
|
|
355 |
{file = "contourpy-1.1.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:143dde50520a9f90e4a2703f367cf8ec96a73042b72e68fcd184e1279962eb6f"},
|
356 |
{file = "contourpy-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e94bef2580e25b5fdb183bf98a2faa2adc5b638736b2c0a4da98691da641316a"},
|
357 |
{file = "contourpy-1.1.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ed614aea8462735e7d70141374bd7650afd1c3f3cb0c2dbbcbe44e14331bf002"},
|
|
|
358 |
{file = "contourpy-1.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:438ba416d02f82b692e371858143970ed2eb6337d9cdbbede0d8ad9f3d7dd17d"},
|
359 |
{file = "contourpy-1.1.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a698c6a7a432789e587168573a864a7ea374c6be8d4f31f9d87c001d5a843493"},
|
360 |
{file = "contourpy-1.1.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:397b0ac8a12880412da3551a8cb5a187d3298a72802b45a3bd1805e204ad8439"},
|
@@ -457,20 +401,6 @@ files = [
|
|
457 |
[package.extras]
|
458 |
test = ["pytest (>=6)"]
|
459 |
|
460 |
-
[[package]]
|
461 |
-
name = "execnet"
|
462 |
-
version = "2.0.2"
|
463 |
-
description = "execnet: rapid multi-Python deployment"
|
464 |
-
optional = false
|
465 |
-
python-versions = ">=3.7"
|
466 |
-
files = [
|
467 |
-
{file = "execnet-2.0.2-py3-none-any.whl", hash = "sha256:88256416ae766bc9e8895c76a87928c0012183da3cc4fc18016e6f050e025f41"},
|
468 |
-
{file = "execnet-2.0.2.tar.gz", hash = "sha256:cc59bc4423742fd71ad227122eb0dd44db51efb3dc4095b45ac9a08c770096af"},
|
469 |
-
]
|
470 |
-
|
471 |
-
[package.extras]
|
472 |
-
testing = ["hatch", "pre-commit", "pytest", "tox"]
|
473 |
-
|
474 |
[[package]]
|
475 |
name = "filelock"
|
476 |
version = "3.12.3"
|
@@ -1176,17 +1106,6 @@ sql-other = ["SQLAlchemy (>=1.4.36)"]
|
|
1176 |
test = ["hypothesis (>=6.46.1)", "pytest (>=7.3.2)", "pytest-asyncio (>=0.17.0)", "pytest-xdist (>=2.2.0)"]
|
1177 |
xml = ["lxml (>=4.8.0)"]
|
1178 |
|
1179 |
-
[[package]]
|
1180 |
-
name = "pathspec"
|
1181 |
-
version = "0.11.2"
|
1182 |
-
description = "Utility library for gitignore style pattern matching of file paths."
|
1183 |
-
optional = false
|
1184 |
-
python-versions = ">=3.7"
|
1185 |
-
files = [
|
1186 |
-
{file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"},
|
1187 |
-
{file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"},
|
1188 |
-
]
|
1189 |
-
|
1190 |
[[package]]
|
1191 |
name = "pillow"
|
1192 |
version = "10.0.0"
|
@@ -1256,21 +1175,6 @@ files = [
|
|
1256 |
docs = ["furo", "olefile", "sphinx (>=2.4)", "sphinx-copybutton", "sphinx-inline-tabs", "sphinx-removed-in", "sphinxext-opengraph"]
|
1257 |
tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
|
1258 |
|
1259 |
-
[[package]]
|
1260 |
-
name = "platformdirs"
|
1261 |
-
version = "3.10.0"
|
1262 |
-
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
|
1263 |
-
optional = false
|
1264 |
-
python-versions = ">=3.7"
|
1265 |
-
files = [
|
1266 |
-
{file = "platformdirs-3.10.0-py3-none-any.whl", hash = "sha256:d7c24979f292f916dc9cbf8648319032f551ea8c49a4c9bf2fb556a02070ec1d"},
|
1267 |
-
{file = "platformdirs-3.10.0.tar.gz", hash = "sha256:b45696dab2d7cc691a3226759c0d3b00c47c8b6e293d96f6436f733303f77f6d"},
|
1268 |
-
]
|
1269 |
-
|
1270 |
-
[package.extras]
|
1271 |
-
docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.1)", "sphinx-autodoc-typehints (>=1.24)"]
|
1272 |
-
test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)"]
|
1273 |
-
|
1274 |
[[package]]
|
1275 |
name = "pluggy"
|
1276 |
version = "1.3.0"
|
@@ -1396,26 +1300,6 @@ tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""}
|
|
1396 |
[package.extras]
|
1397 |
testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
|
1398 |
|
1399 |
-
[[package]]
|
1400 |
-
name = "pytest-xdist"
|
1401 |
-
version = "3.3.1"
|
1402 |
-
description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs"
|
1403 |
-
optional = false
|
1404 |
-
python-versions = ">=3.7"
|
1405 |
-
files = [
|
1406 |
-
{file = "pytest-xdist-3.3.1.tar.gz", hash = "sha256:d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93"},
|
1407 |
-
{file = "pytest_xdist-3.3.1-py3-none-any.whl", hash = "sha256:ff9daa7793569e6a68544850fd3927cd257cc03a7ef76c95e86915355e82b5f2"},
|
1408 |
-
]
|
1409 |
-
|
1410 |
-
[package.dependencies]
|
1411 |
-
execnet = ">=1.1"
|
1412 |
-
pytest = ">=6.2.0"
|
1413 |
-
|
1414 |
-
[package.extras]
|
1415 |
-
psutil = ["psutil (>=3.0)"]
|
1416 |
-
setproctitle = ["setproctitle"]
|
1417 |
-
testing = ["filelock"]
|
1418 |
-
|
1419 |
[[package]]
|
1420 |
name = "python-dateutil"
|
1421 |
version = "2.8.2"
|
@@ -1466,6 +1350,7 @@ files = [
|
|
1466 |
{file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"},
|
1467 |
{file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
|
1468 |
{file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
|
|
|
1469 |
{file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
|
1470 |
{file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
|
1471 |
{file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
|
@@ -1523,28 +1408,28 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
|
1523 |
|
1524 |
[[package]]
|
1525 |
name = "ruff"
|
1526 |
-
version = "0.
|
1527 |
-
description = "An extremely fast Python linter, written in Rust."
|
1528 |
optional = false
|
1529 |
python-versions = ">=3.7"
|
1530 |
files = [
|
1531 |
-
{file = "ruff-0.
|
1532 |
-
{file = "ruff-0.
|
1533 |
-
{file = "ruff-0.
|
1534 |
-
{file = "ruff-0.
|
1535 |
-
{file = "ruff-0.
|
1536 |
-
{file = "ruff-0.
|
1537 |
-
{file = "ruff-0.
|
1538 |
-
{file = "ruff-0.
|
1539 |
-
{file = "ruff-0.
|
1540 |
-
{file = "ruff-0.
|
1541 |
-
{file = "ruff-0.
|
1542 |
-
{file = "ruff-0.
|
1543 |
-
{file = "ruff-0.
|
1544 |
-
{file = "ruff-0.
|
1545 |
-
{file = "ruff-0.
|
1546 |
-
{file = "ruff-0.
|
1547 |
-
{file = "ruff-0.
|
1548 |
]
|
1549 |
|
1550 |
[[package]]
|
@@ -1827,4 +1712,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
|
|
1827 |
[metadata]
|
1828 |
lock-version = "2.0"
|
1829 |
python-versions = "^3.9"
|
1830 |
-
content-hash = "
|
|
|
1 |
+
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
2 |
|
3 |
[[package]]
|
4 |
name = "aiohttp"
|
|
|
151 |
tests = ["attrs[tests-no-zope]", "zope-interface"]
|
152 |
tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
|
153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
[[package]]
|
155 |
name = "certifi"
|
156 |
version = "2023.7.22"
|
|
|
246 |
{file = "charset_normalizer-3.2.0-py3-none-any.whl", hash = "sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6"},
|
247 |
]
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
[[package]]
|
250 |
name = "colorama"
|
251 |
version = "0.4.6"
|
|
|
271 |
{file = "contourpy-1.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18a64814ae7bce73925131381603fff0116e2df25230dfc80d6d690aa6e20b37"},
|
272 |
{file = "contourpy-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90c81f22b4f572f8a2110b0b741bb64e5a6427e0a198b2cdc1fbaf85f352a3aa"},
|
273 |
{file = "contourpy-1.1.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:53cc3a40635abedbec7f1bde60f8c189c49e84ac180c665f2cd7c162cc454baa"},
|
274 |
+
{file = "contourpy-1.1.0-cp310-cp310-win32.whl", hash = "sha256:9b2dd2ca3ac561aceef4c7c13ba654aaa404cf885b187427760d7f7d4c57cff8"},
|
275 |
{file = "contourpy-1.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:1f795597073b09d631782e7245016a4323cf1cf0b4e06eef7ea6627e06a37ff2"},
|
276 |
{file = "contourpy-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0b7b04ed0961647691cfe5d82115dd072af7ce8846d31a5fac6c142dcce8b882"},
|
277 |
{file = "contourpy-1.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:27bc79200c742f9746d7dd51a734ee326a292d77e7d94c8af6e08d1e6c15d545"},
|
|
|
280 |
{file = "contourpy-1.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5cec36c5090e75a9ac9dbd0ff4a8cf7cecd60f1b6dc23a374c7d980a1cd710e"},
|
281 |
{file = "contourpy-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f0cbd657e9bde94cd0e33aa7df94fb73c1ab7799378d3b3f902eb8eb2e04a3a"},
|
282 |
{file = "contourpy-1.1.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:181cbace49874f4358e2929aaf7ba84006acb76694102e88dd15af861996c16e"},
|
283 |
+
{file = "contourpy-1.1.0-cp311-cp311-win32.whl", hash = "sha256:edb989d31065b1acef3828a3688f88b2abb799a7db891c9e282df5ec7e46221b"},
|
284 |
{file = "contourpy-1.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:fb3b7d9e6243bfa1efb93ccfe64ec610d85cfe5aec2c25f97fbbd2e58b531256"},
|
285 |
{file = "contourpy-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:bcb41692aa09aeb19c7c213411854402f29f6613845ad2453d30bf421fe68fed"},
|
286 |
{file = "contourpy-1.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5d123a5bc63cd34c27ff9c7ac1cd978909e9c71da12e05be0231c608048bb2ae"},
|
|
|
289 |
{file = "contourpy-1.1.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:317267d915490d1e84577924bd61ba71bf8681a30e0d6c545f577363157e5e94"},
|
290 |
{file = "contourpy-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d551f3a442655f3dcc1285723f9acd646ca5858834efeab4598d706206b09c9f"},
|
291 |
{file = "contourpy-1.1.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7a117ce7df5a938fe035cad481b0189049e8d92433b4b33aa7fc609344aafa1"},
|
292 |
+
{file = "contourpy-1.1.0-cp38-cp38-win32.whl", hash = "sha256:108dfb5b3e731046a96c60bdc46a1a0ebee0760418951abecbe0fc07b5b93b27"},
|
293 |
{file = "contourpy-1.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:d4f26b25b4f86087e7d75e63212756c38546e70f2a92d2be44f80114826e1cd4"},
|
294 |
{file = "contourpy-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bc00bb4225d57bff7ebb634646c0ee2a1298402ec10a5fe7af79df9a51c1bfd9"},
|
295 |
{file = "contourpy-1.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:189ceb1525eb0655ab8487a9a9c41f42a73ba52d6789754788d1883fb06b2d8a"},
|
|
|
298 |
{file = "contourpy-1.1.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:143dde50520a9f90e4a2703f367cf8ec96a73042b72e68fcd184e1279962eb6f"},
|
299 |
{file = "contourpy-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e94bef2580e25b5fdb183bf98a2faa2adc5b638736b2c0a4da98691da641316a"},
|
300 |
{file = "contourpy-1.1.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ed614aea8462735e7d70141374bd7650afd1c3f3cb0c2dbbcbe44e14331bf002"},
|
301 |
+
{file = "contourpy-1.1.0-cp39-cp39-win32.whl", hash = "sha256:71551f9520f008b2950bef5f16b0e3587506ef4f23c734b71ffb7b89f8721999"},
|
302 |
{file = "contourpy-1.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:438ba416d02f82b692e371858143970ed2eb6337d9cdbbede0d8ad9f3d7dd17d"},
|
303 |
{file = "contourpy-1.1.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a698c6a7a432789e587168573a864a7ea374c6be8d4f31f9d87c001d5a843493"},
|
304 |
{file = "contourpy-1.1.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:397b0ac8a12880412da3551a8cb5a187d3298a72802b45a3bd1805e204ad8439"},
|
|
|
401 |
[package.extras]
|
402 |
test = ["pytest (>=6)"]
|
403 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
[[package]]
|
405 |
name = "filelock"
|
406 |
version = "3.12.3"
|
|
|
1106 |
test = ["hypothesis (>=6.46.1)", "pytest (>=7.3.2)", "pytest-asyncio (>=0.17.0)", "pytest-xdist (>=2.2.0)"]
|
1107 |
xml = ["lxml (>=4.8.0)"]
|
1108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1109 |
[[package]]
|
1110 |
name = "pillow"
|
1111 |
version = "10.0.0"
|
|
|
1175 |
docs = ["furo", "olefile", "sphinx (>=2.4)", "sphinx-copybutton", "sphinx-inline-tabs", "sphinx-removed-in", "sphinxext-opengraph"]
|
1176 |
tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
|
1177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1178 |
[[package]]
|
1179 |
name = "pluggy"
|
1180 |
version = "1.3.0"
|
|
|
1300 |
[package.extras]
|
1301 |
testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
|
1302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
[[package]]
|
1304 |
name = "python-dateutil"
|
1305 |
version = "2.8.2"
|
|
|
1350 |
{file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"},
|
1351 |
{file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
|
1352 |
{file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
|
1353 |
+
{file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
|
1354 |
{file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
|
1355 |
{file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
|
1356 |
{file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
|
|
|
1408 |
|
1409 |
[[package]]
|
1410 |
name = "ruff"
|
1411 |
+
version = "0.4.8"
|
1412 |
+
description = "An extremely fast Python linter and code formatter, written in Rust."
|
1413 |
optional = false
|
1414 |
python-versions = ">=3.7"
|
1415 |
files = [
|
1416 |
+
{file = "ruff-0.4.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:7663a6d78f6adb0eab270fa9cf1ff2d28618ca3a652b60f2a234d92b9ec89066"},
|
1417 |
+
{file = "ruff-0.4.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:eeceb78da8afb6de0ddada93112869852d04f1cd0f6b80fe464fd4e35c330913"},
|
1418 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aad360893e92486662ef3be0a339c5ca3c1b109e0134fcd37d534d4be9fb8de3"},
|
1419 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:284c2e3f3396fb05f5f803c9fffb53ebbe09a3ebe7dda2929ed8d73ded736deb"},
|
1420 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7354f921e3fbe04d2a62d46707e569f9315e1a613307f7311a935743c51a764"},
|
1421 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:72584676164e15a68a15778fd1b17c28a519e7a0622161eb2debdcdabdc71883"},
|
1422 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9678d5c9b43315f323af2233a04d747409d1e3aa6789620083a82d1066a35199"},
|
1423 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704977a658131651a22b5ebeb28b717ef42ac6ee3b11e91dc87b633b5d83142b"},
|
1424 |
+
{file = "ruff-0.4.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d05f8d6f0c3cce5026cecd83b7a143dcad503045857bc49662f736437380ad45"},
|
1425 |
+
{file = "ruff-0.4.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:6ea874950daca5697309d976c9afba830d3bf0ed66887481d6bca1673fc5b66a"},
|
1426 |
+
{file = "ruff-0.4.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fc95aac2943ddf360376be9aa3107c8cf9640083940a8c5bd824be692d2216dc"},
|
1427 |
+
{file = "ruff-0.4.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:384154a1c3f4bf537bac69f33720957ee49ac8d484bfc91720cc94172026ceed"},
|
1428 |
+
{file = "ruff-0.4.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:e9d5ce97cacc99878aa0d084c626a15cd21e6b3d53fd6f9112b7fc485918e1fa"},
|
1429 |
+
{file = "ruff-0.4.8-py3-none-win32.whl", hash = "sha256:6d795d7639212c2dfd01991259460101c22aabf420d9b943f153ab9d9706e6a9"},
|
1430 |
+
{file = "ruff-0.4.8-py3-none-win_amd64.whl", hash = "sha256:e14a3a095d07560a9d6769a72f781d73259655919d9b396c650fc98a8157555d"},
|
1431 |
+
{file = "ruff-0.4.8-py3-none-win_arm64.whl", hash = "sha256:14019a06dbe29b608f6b7cbcec300e3170a8d86efaddb7b23405cb7f7dcaf780"},
|
1432 |
+
{file = "ruff-0.4.8.tar.gz", hash = "sha256:16d717b1d57b2e2fd68bd0bf80fb43931b79d05a7131aa477d66fc40fbd86268"},
|
1433 |
]
|
1434 |
|
1435 |
[[package]]
|
|
|
1712 |
[metadata]
|
1713 |
lock-version = "2.0"
|
1714 |
python-versions = "^3.9"
|
1715 |
+
content-hash = "fdf9237f0f206fa79ae389b069da84e5fa377603c23c4228a4dac54b3bd67d74"
|
pyproject.toml
CHANGED
@@ -3,19 +3,21 @@ name = "huggingface-datasets-mscoco"
|
|
3 |
version = "0.1.0"
|
4 |
description = ""
|
5 |
authors = ["Shunsuke KITADA <[email protected]>"]
|
6 |
-
|
7 |
|
8 |
[tool.poetry.dependencies]
|
9 |
python = "^3.9"
|
10 |
-
datasets = {extras = ["vision"], version = "^2.14.4"}
|
11 |
pycocotools = "^2.0.7"
|
12 |
|
13 |
[tool.poetry.group.dev.dependencies]
|
14 |
-
ruff = "
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
19 |
|
20 |
[build-system]
|
21 |
requires = ["poetry-core"]
|
|
|
3 |
version = "0.1.0"
|
4 |
description = ""
|
5 |
authors = ["Shunsuke KITADA <[email protected]>"]
|
6 |
+
package-mode = false
|
7 |
|
8 |
[tool.poetry.dependencies]
|
9 |
python = "^3.9"
|
10 |
+
datasets = { extras = ["vision"], version = "^2.14.4" }
|
11 |
pycocotools = "^2.0.7"
|
12 |
|
13 |
[tool.poetry.group.dev.dependencies]
|
14 |
+
ruff = ">=0.1.5"
|
15 |
+
mypy = ">=1.0.0"
|
16 |
+
pytest = ">=6.0.0"
|
17 |
+
|
18 |
+
[tool.mypy]
|
19 |
+
python_version = "3.9"
|
20 |
+
ignore_missing_imports = true
|
21 |
|
22 |
[build-system]
|
23 |
requires = ["poetry-core"]
|