Skip to content

Commit 7b9e81f

Browse files
authored
chore: set default name field in Package to docling-core (#5)
For consistency, set the default value for name field in search.package.Package to doocling-core, since the field version is set to docling-core version by default. Signed-off-by: Cesar Berrospi Ramis <[email protected]>
1 parent f276691 commit 7b9e81f

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

docling_core/search/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Package(BaseModel, extra="forbid"):
2626
The version needs to comply with Semantic Versioning 2.0.0.
2727
"""
2828

29-
name: StrictStr
29+
name: StrictStr = "docling-core"
3030
version: Annotated[str, StringConstraints(strict=True, pattern=VERSION_PATTERN)] = (
3131
importlib.metadata.version("docling-core")
3232
)

poetry.lock

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tabulate = "^0.9.0"
5858
[tool.poetry.group.dev.dependencies]
5959
black = "^24.4.2"
6060
pytest = "^7.1.2"
61-
mypy = "^v1.6.0"
61+
mypy = "^1.6.0"
6262
isort = "^5.10.1"
6363
pre-commit = "^3.7.1"
6464
autoflake = "^2.0.0"

0 commit comments

Comments
 (0)