File tree Expand file tree Collapse file tree 3 files changed +15
-19
lines changed Expand file tree Collapse file tree 3 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,9 @@ pip3 install poetry
162
162
poetry install
163
163
```
164
164
165
- Please install the pre-commit hooks by running the following commands :
165
+ Please install the pre-commit hooks by running the following command :
166
166
``` python
167
- pip install pre- commit
168
- pre- commit install
167
+ poetry run pre- commit install
169
168
```
170
169
171
170
** Best practices for testing:**
Original file line number Diff line number Diff line change 1
- from typing import List , Dict , Any , Optional
1
+ from typing import Any , Dict , List , Optional
2
+
3
+ import requests
2
4
3
5
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
8
8
from .constants import (
9
- DATASET_NAME_KEY ,
9
+ DATASET_ITEM_IDS_KEY ,
10
+ DATASET_LENGTH_KEY ,
10
11
DATASET_MODEL_RUNS_KEY ,
12
+ DATASET_NAME_KEY ,
11
13
DATASET_SLICES_KEY ,
12
- DATASET_LENGTH_KEY ,
13
- DATASET_ITEM_IDS_KEY ,
14
- REFERENCE_IDS_KEY ,
15
- NAME_KEY ,
16
14
DEFAULT_ANNOTATION_UPDATE_MODE ,
15
+ NAME_KEY ,
16
+ REFERENCE_IDS_KEY ,
17
17
)
18
+ from .dataset_item import DatasetItem
18
19
from .payload_constructor import construct_model_run_creation_payload
19
20
20
- import requests
21
-
22
21
23
22
class Dataset :
24
23
"""
Original file line number Diff line number Diff line change @@ -32,13 +32,10 @@ documentation = "https://dashboard.scale.com/nucleus/docs/api"
32
32
packages = [{include =" nucleus" }]
33
33
34
34
[tool .poetry .dependencies ]
35
- python = " ^3.6"
35
+ python = " ^3.6.1 "
36
36
grequests = " ^0.6.0"
37
37
requests = " ^2.25.1"
38
38
tqdm = " ^4.60.0"
39
- boto3 = " ^1.17.53"
40
- mypy = " ^0.812"
41
- coverage = " ^5.5"
42
39
dataclasses = { version = " ^0.7" , python = " ^3.6.1, <3.7" }
43
40
44
41
[tool .poetry .dev-dependencies ]
@@ -49,6 +46,7 @@ black = "^20.8b1"
49
46
flake8 = " ^3.9.1"
50
47
mypy = " ^0.812"
51
48
coverage = " ^5.5"
49
+ pre-commit = " ^2.12.1"
52
50
53
51
54
52
[build-system ]
You can’t perform that action at this time.
0 commit comments