Skip to content

Commit b76b37b

Browse files
author
Diego Ardila
committed
cleanup readme and dependencies
1 parent a8469ee commit b76b37b

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,9 @@ pip3 install poetry
162162
poetry install
163163
```
164164

165-
Please install the pre-commit hooks by running the following commands:
165+
Please install the pre-commit hooks by running the following command:
166166
```python
167-
pip install pre-commit
168-
pre-commit install
167+
poetry run pre-commit install
169168
```
170169

171170
**Best practices for testing:**

nucleus/dataset.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
from typing import List, Dict, Any, Optional
1+
from typing import Any, Dict, List, Optional
2+
3+
import requests
24

35
from nucleus.utils import format_dataset_item_response
4-
from .dataset_item import DatasetItem
5-
from .annotation import (
6-
Annotation,
7-
)
6+
7+
from .annotation import Annotation
88
from .constants import (
9-
DATASET_NAME_KEY,
9+
DATASET_ITEM_IDS_KEY,
10+
DATASET_LENGTH_KEY,
1011
DATASET_MODEL_RUNS_KEY,
12+
DATASET_NAME_KEY,
1113
DATASET_SLICES_KEY,
12-
DATASET_LENGTH_KEY,
13-
DATASET_ITEM_IDS_KEY,
14-
REFERENCE_IDS_KEY,
15-
NAME_KEY,
1614
DEFAULT_ANNOTATION_UPDATE_MODE,
15+
NAME_KEY,
16+
REFERENCE_IDS_KEY,
1717
)
18+
from .dataset_item import DatasetItem
1819
from .payload_constructor import construct_model_run_creation_payload
1920

20-
import requests
21-
2221

2322
class Dataset:
2423
"""

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,10 @@ documentation = "https://dashboard.scale.com/nucleus/docs/api"
3232
packages = [{include="nucleus"}]
3333

3434
[tool.poetry.dependencies]
35-
python = "^3.6"
35+
python = "^3.6.1"
3636
grequests = "^0.6.0"
3737
requests = "^2.25.1"
3838
tqdm = "^4.60.0"
39-
boto3 = "^1.17.53"
40-
mypy = "^0.812"
41-
coverage = "^5.5"
4239
dataclasses = { version = "^0.7", python = "^3.6.1, <3.7" }
4340

4441
[tool.poetry.dev-dependencies]
@@ -49,6 +46,7 @@ black = "^20.8b1"
4946
flake8 = "^3.9.1"
5047
mypy = "^0.812"
5148
coverage = "^5.5"
49+
pre-commit = "^2.12.1"
5250

5351

5452
[build-system]

0 commit comments

Comments
 (0)