Skip to content

Commit 31f231b

Browse files
committed
PR comments
1 parent 72b2971 commit 31f231b

File tree

5 files changed

+44
-3
lines changed

5 files changed

+44
-3
lines changed

encord/http/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
from encord.http.constants import RequestsSettings as RequestsSettings
1+
from encord.http.constants import RequestsSettings
2+
3+
__all__ = [
4+
"RequestsSettings",
5+
]

encord/objects/common.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,30 @@
55
from typing import Any, Dict, List, Union
66

77
from encord.common.enum import StringEnum
8+
from encord.objects.attributes import (
9+
Attribute,
10+
ChecklistAttribute,
11+
RadioAttribute,
12+
TextAttribute,
13+
)
14+
from encord.objects.ontology_element import NestedID
15+
from encord.objects.options import (
16+
FlatOption,
17+
NestableOption,
18+
Option,
19+
)
820

921
# Following imports need to be here for backwards compatibility
22+
__all__ = [
23+
"Attribute",
24+
"ChecklistAttribute",
25+
"FlatOption",
26+
"NestableOption",
27+
"NestedID",
28+
"Option",
29+
"RadioAttribute",
30+
"TextAttribute",
31+
]
1032

1133

1234
class PropertyType(StringEnum):

encord/objects/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111

1212
from __future__ import annotations
1313

14+
from encord.common.constants import DATETIME_LONG_STRING_FORMAT
15+
1416
# for backwards compatibility
17+
__all__ = [
18+
"DATETIME_LONG_STRING_FORMAT",
19+
]
20+
1521

1622
DEFAULT_CONFIDENCE = 1.0
1723
DEFAULT_MANUAL_ANNOTATION = True

encord/objects/project.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
# Import for backward compatibility
1+
from encord.orm.project import ProjectDataset
2+
3+
# Export for backward compatibility
4+
__all__ = [
5+
"ProjectDataset",
6+
]

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ target-version = "py39"
7676
line-length = 120
7777

7878
[tool.ruff.lint]
79-
select = ["W", "Q", "I", "D417", "RUF022", "F"]
79+
select = ["W", "Q", "I", "D417", "RUF022", "F", "E"]
8080

8181
[tool.ruff.lint.pydocstyle]
8282
ignore-var-parameters = true
83+
84+
85+
[tool.ruff.lint.per-file-ignores]
86+
"*" = ["E501"]

0 commit comments

Comments
 (0)