dyff-schema 0.20.0__tar.gz → 0.20.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dyff-schema might be problematic. Click here for more details.
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/.gitlab-ci.yml +2 -2
- {dyff_schema-0.20.0/dyff_schema.egg-info → dyff_schema-0.20.1}/PKG-INFO +1 -1
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/requests.py +41 -2
- {dyff_schema-0.20.0 → dyff_schema-0.20.1/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/.gitignore +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/.licenserc.yaml +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/.prettierignore +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/.secrets.baseline +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/LICENSE +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/NOTICE +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/README.md +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/base.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/test.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/platform.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff/schema/version.py +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/makefile +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/pyproject.toml +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/setup.cfg +0 -0
- {dyff_schema-0.20.0 → dyff_schema-0.20.1}/tests/test_import.py +0 -0
|
@@ -12,7 +12,7 @@ include:
|
|
|
12
12
|
file:
|
|
13
13
|
- gitlab-release.yml
|
|
14
14
|
- project: buildgarden/pipelines/detect-secrets
|
|
15
|
-
ref: 0.2.
|
|
15
|
+
ref: 0.2.3
|
|
16
16
|
file:
|
|
17
17
|
- detect-secrets.yml
|
|
18
18
|
- project: buildgarden/pipelines/prettier
|
|
@@ -20,7 +20,7 @@ include:
|
|
|
20
20
|
file:
|
|
21
21
|
- prettier.yml
|
|
22
22
|
- project: buildgarden/pipelines/python
|
|
23
|
-
ref: 0.14.
|
|
23
|
+
ref: 0.14.2
|
|
24
24
|
file:
|
|
25
25
|
- python-autoflake.yml
|
|
26
26
|
- python-black.yml
|
|
@@ -38,6 +38,8 @@ from .platform import (
|
|
|
38
38
|
ModelSpec,
|
|
39
39
|
ModuleBase,
|
|
40
40
|
ReportBase,
|
|
41
|
+
summary_maxlen,
|
|
42
|
+
title_maxlen,
|
|
41
43
|
)
|
|
42
44
|
from .version import SchemaVersion
|
|
43
45
|
|
|
@@ -94,7 +96,28 @@ class AnalysisCreateRequest(DyffEntityCreateRequest, AnalysisBase):
|
|
|
94
96
|
|
|
95
97
|
|
|
96
98
|
class ConcernCreateRequest(DyffEntityCreateRequest, ConcernBase):
|
|
97
|
-
|
|
99
|
+
@pydantic.validator("documentation", check_fields=False)
|
|
100
|
+
def _validate_documentation(
|
|
101
|
+
cls, documentation: DocumentationBase
|
|
102
|
+
) -> DocumentationBase:
|
|
103
|
+
# TODO: This has to be a validator function because we can't apply the
|
|
104
|
+
# contraint to DocumentationBase, since there are already entities
|
|
105
|
+
# that violate the constraints in the data store. Fix in Schema v1.
|
|
106
|
+
if (
|
|
107
|
+
documentation.title is not None
|
|
108
|
+
and len(documentation.title) > title_maxlen()
|
|
109
|
+
):
|
|
110
|
+
raise ValueError(
|
|
111
|
+
f".documentation.title must have length < {title_maxlen()}"
|
|
112
|
+
)
|
|
113
|
+
if (
|
|
114
|
+
documentation.summary is not None
|
|
115
|
+
and len(documentation.summary) > summary_maxlen()
|
|
116
|
+
):
|
|
117
|
+
raise ValueError(
|
|
118
|
+
f".documentation.summary must have length < {summary_maxlen()}"
|
|
119
|
+
)
|
|
120
|
+
return documentation
|
|
98
121
|
|
|
99
122
|
|
|
100
123
|
class DatasetCreateRequest(DyffEntityCreateRequest, DatasetBase):
|
|
@@ -102,7 +125,23 @@ class DatasetCreateRequest(DyffEntityCreateRequest, DatasetBase):
|
|
|
102
125
|
|
|
103
126
|
|
|
104
127
|
class DocumentationEditRequest(DyffRequestBase, DocumentationBase):
|
|
105
|
-
|
|
128
|
+
@pydantic.validator("title", check_fields=False)
|
|
129
|
+
def _validate_title(cls, title: Optional[str]) -> Optional[str]:
|
|
130
|
+
# TODO: This has to be a validator function because we can't apply the
|
|
131
|
+
# contraint to DocumentationBase, since there are already entities
|
|
132
|
+
# that violate the constraints in the data store. Fix in Schema v1.
|
|
133
|
+
if title is not None and len(title) > title_maxlen():
|
|
134
|
+
raise ValueError(f".title must have length < {title_maxlen()}")
|
|
135
|
+
return title
|
|
136
|
+
|
|
137
|
+
@pydantic.validator("summary", check_fields=False)
|
|
138
|
+
def _validate_summary(cls, summary: Optional[str]) -> Optional[str]:
|
|
139
|
+
# TODO: This has to be a validator function because we can't apply the
|
|
140
|
+
# contraint to DocumentationBase, since there are already entities
|
|
141
|
+
# that violate the constraints in the data store. Fix in Schema v1.
|
|
142
|
+
if summary is not None and len(summary) > summary_maxlen():
|
|
143
|
+
raise ValueError(f".summary must have length < {summary_maxlen()}")
|
|
144
|
+
return summary
|
|
106
145
|
|
|
107
146
|
|
|
108
147
|
class InferenceServiceCreateRequest(DyffEntityCreateRequest, InferenceServiceBase):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|