Spaces:
Configuration error
Configuration error
İlker SIĞIRCI
ilker.sigirci
commited on
chore(config): replace black,isort,flake and autoflake with ruff (#55)
Browse filesSigned-off-by: ilker.sigirci <[email protected]>
Signed-off-by: ilkersigirci <[email protected]>
Co-authored-by: ilker.sigirci <[email protected]>
- .pre-commit-config.yaml +9 -32
- docling_serve/docling_conversion.py +2 -3
- pyproject.toml +54 -20
- uv.lock +7 -119
.pre-commit-config.yaml
CHANGED
@@ -1,37 +1,5 @@
|
|
1 |
fail_fast: true
|
2 |
repos:
|
3 |
-
- repo: local
|
4 |
-
hooks:
|
5 |
-
- id: system
|
6 |
-
name: Black
|
7 |
-
entry: uv run --no-sync black docling_serve tests
|
8 |
-
pass_filenames: false
|
9 |
-
language: system
|
10 |
-
files: '\.py$'
|
11 |
-
- repo: local
|
12 |
-
hooks:
|
13 |
-
- id: system
|
14 |
-
name: isort
|
15 |
-
entry: uv run --no-sync isort docling_serve tests
|
16 |
-
pass_filenames: false
|
17 |
-
language: system
|
18 |
-
files: '\.py$'
|
19 |
-
- repo: local
|
20 |
-
hooks:
|
21 |
-
- id: autoflake
|
22 |
-
name: autoflake
|
23 |
-
entry: uv run --no-sync autoflake docling_serve tests
|
24 |
-
pass_filenames: false
|
25 |
-
language: system
|
26 |
-
files: '\.py$'
|
27 |
-
- repo: local
|
28 |
-
hooks:
|
29 |
-
- id: system
|
30 |
-
name: flake8
|
31 |
-
entry: uv run --no-sync flake8 docling_serve
|
32 |
-
pass_filenames: false
|
33 |
-
language: system
|
34 |
-
files: '\.py$'
|
35 |
- repo: local
|
36 |
hooks:
|
37 |
- id: system
|
@@ -45,3 +13,12 @@ repos:
|
|
45 |
rev: 0.6.1
|
46 |
hooks:
|
47 |
- id: uv-lock
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
fail_fast: true
|
2 |
repos:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
- repo: local
|
4 |
hooks:
|
5 |
- id: system
|
|
|
13 |
rev: 0.6.1
|
14 |
hooks:
|
15 |
- id: uv-lock
|
16 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
17 |
+
rev: v0.9.6
|
18 |
+
hooks:
|
19 |
+
# Run the Ruff linter.
|
20 |
+
- id: ruff
|
21 |
+
args: [--exit-non-zero-on-fix, --config=pyproject.toml]
|
22 |
+
# Run the Ruff formatter.
|
23 |
+
# - id: ruff-format
|
24 |
+
# args: [--config=pyproject.toml]
|
docling_serve/docling_conversion.py
CHANGED
@@ -56,7 +56,7 @@ class ConvertDocumentsOptions(BaseModel):
|
|
56 |
),
|
57 |
examples=[[v.value for v in InputFormat]],
|
58 |
),
|
59 |
-
] =
|
60 |
|
61 |
to_formats: Annotated[
|
62 |
List[OutputFormat],
|
@@ -162,7 +162,7 @@ class ConvertDocumentsOptions(BaseModel):
|
|
162 |
bool,
|
163 |
Field(
|
164 |
description=(
|
165 |
-
"Abort on error if enabled.
|
166 |
),
|
167 |
# examples=[False],
|
168 |
),
|
@@ -302,7 +302,6 @@ def _serialize_pdf_format_option(pdf_format_option: PdfFormatOption) -> str:
|
|
302 |
def get_pdf_pipeline_opts( # noqa: C901
|
303 |
request: ConvertDocumentsOptions,
|
304 |
) -> Tuple[PdfFormatOption, str]:
|
305 |
-
|
306 |
if request.ocr_engine == OcrEngine.EASYOCR:
|
307 |
try:
|
308 |
import easyocr # noqa: F401
|
|
|
56 |
),
|
57 |
examples=[[v.value for v in InputFormat]],
|
58 |
),
|
59 |
+
] = list(InputFormat)
|
60 |
|
61 |
to_formats: Annotated[
|
62 |
List[OutputFormat],
|
|
|
162 |
bool,
|
163 |
Field(
|
164 |
description=(
|
165 |
+
"Abort on error if enabled. Boolean. Optional, defaults to false."
|
166 |
),
|
167 |
# examples=[False],
|
168 |
),
|
|
|
302 |
def get_pdf_pipeline_opts( # noqa: C901
|
303 |
request: ConvertDocumentsOptions,
|
304 |
) -> Tuple[PdfFormatOption, str]:
|
|
|
305 |
if request.ocr_engine == OcrEngine.EASYOCR:
|
306 |
try:
|
307 |
import easyocr # noqa: F401
|
pyproject.toml
CHANGED
@@ -62,16 +62,13 @@ cu124 = [
|
|
62 |
|
63 |
[dependency-groups]
|
64 |
dev = [
|
65 |
-
"autoflake~=2.3",
|
66 |
-
"black~=24.8",
|
67 |
-
"flake8~=7.1",
|
68 |
-
"isort~=5.13",
|
69 |
"mypy~=1.11",
|
70 |
"pre-commit~=3.8",
|
71 |
"pytest~=8.3",
|
72 |
"pytest-asyncio~=0.24",
|
73 |
"pytest-check~=2.4",
|
74 |
"python-semantic-release~=7.32",
|
|
|
75 |
]
|
76 |
|
77 |
[tool.uv]
|
@@ -116,23 +113,60 @@ Repository = "https://github.com/DS4SD/docling-serve"
|
|
116 |
Issues = "https://github.com/DS4SD/docling-serve/issues"
|
117 |
Changelog = "https://github.com/DS4SD/docling-serve/blob/main/CHANGELOG.md"
|
118 |
|
119 |
-
[tool.
|
|
|
120 |
line-length = 88
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
[tool.
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
[tool.mypy]
|
138 |
pretty = true
|
|
|
62 |
|
63 |
[dependency-groups]
|
64 |
dev = [
|
|
|
|
|
|
|
|
|
65 |
"mypy~=1.11",
|
66 |
"pre-commit~=3.8",
|
67 |
"pytest~=8.3",
|
68 |
"pytest-asyncio~=0.24",
|
69 |
"pytest-check~=2.4",
|
70 |
"python-semantic-release~=7.32",
|
71 |
+
"ruff>=0.9.6",
|
72 |
]
|
73 |
|
74 |
[tool.uv]
|
|
|
113 |
Issues = "https://github.com/DS4SD/docling-serve/issues"
|
114 |
Changelog = "https://github.com/DS4SD/docling-serve/blob/main/CHANGELOG.md"
|
115 |
|
116 |
+
[tool.ruff]
|
117 |
+
target-version = "py310"
|
118 |
line-length = 88
|
119 |
+
respect-gitignore = true
|
120 |
+
|
121 |
+
# extend-exclude = [
|
122 |
+
# "tests",
|
123 |
+
# ]
|
124 |
+
|
125 |
+
[tool.ruff.format]
|
126 |
+
skip-magic-trailing-comma = false
|
127 |
+
|
128 |
+
[tool.ruff.lint]
|
129 |
+
select = [
|
130 |
+
# "B", # flake8-bugbear
|
131 |
+
"C", # flake8-comprehensions
|
132 |
+
"C9", # mccabe
|
133 |
+
# "D", # flake8-docstrings
|
134 |
+
"E", # pycodestyle errors (default)
|
135 |
+
"F", # pyflakes (default)
|
136 |
+
"I", # isort
|
137 |
+
"PD", # pandas-vet
|
138 |
+
"PIE", # pie
|
139 |
+
# "PTH", # pathlib
|
140 |
+
"Q", # flake8-quotes
|
141 |
+
# "RET", # return
|
142 |
+
"RUF", # Enable all ruff-specific checks
|
143 |
+
# "SIM", # simplify
|
144 |
+
"S307", # eval
|
145 |
+
# "T20", # (disallow print statements) keep debugging statements out of the codebase
|
146 |
+
"W", # pycodestyle warnings
|
147 |
+
"ASYNC" # async
|
148 |
+
]
|
149 |
+
|
150 |
+
ignore = [
|
151 |
+
"E501", # Line too long, handled by ruff formatter
|
152 |
+
"D107", # "Missing docstring in __init__",
|
153 |
+
"F811", # "redefinition of the same function"
|
154 |
+
"PL", # Pylint
|
155 |
+
"RUF012", # Mutable Class Attributes
|
156 |
+
]
|
157 |
+
|
158 |
+
#extend-select = []
|
159 |
+
|
160 |
+
[tool.ruff.lint.per-file-ignores]
|
161 |
+
"__init__.py" = ["E402", "F401"]
|
162 |
+
"tests/*.py" = ["ASYNC"] # Disable ASYNC check for tests
|
163 |
+
|
164 |
+
[tool.ruff.lint.mccabe]
|
165 |
+
max-complexity = 15
|
166 |
+
|
167 |
+
[tool.ruff.lint.isort]
|
168 |
+
combine-as-imports = true
|
169 |
+
known-third-party = ["docling", "docling_core"]
|
170 |
|
171 |
[tool.mypy]
|
172 |
pretty = true
|
uv.lock
CHANGED
@@ -106,19 +106,6 @@ wheels = [
|
|
106 |
{ url = "https://files.pythonhosted.org/packages/5d/35/be73b6015511aa0173ec595fc579133b797ad532996f2998fd6b8d1bbe6b/audioop_lts-0.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:78bfb3703388c780edf900be66e07de5a3d4105ca8e8720c5c4d67927e0b15d0", size = 23918 },
|
107 |
]
|
108 |
|
109 |
-
[[package]]
|
110 |
-
name = "autoflake"
|
111 |
-
version = "2.3.1"
|
112 |
-
source = { registry = "https://pypi.org/simple" }
|
113 |
-
dependencies = [
|
114 |
-
{ name = "pyflakes" },
|
115 |
-
{ name = "tomli", marker = "python_full_version < '3.11' or (extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124')" },
|
116 |
-
]
|
117 |
-
sdist = { url = "https://files.pythonhosted.org/packages/2a/cb/486f912d6171bc5748c311a2984a301f4e2d054833a1da78485866c71522/autoflake-2.3.1.tar.gz", hash = "sha256:c98b75dc5b0a86459c4f01a1d32ac7eb4338ec4317a4469515ff1e687ecd909e", size = 27642 }
|
118 |
-
wheels = [
|
119 |
-
{ url = "https://files.pythonhosted.org/packages/a2/ee/3fd29bf416eb4f1c5579cf12bf393ae954099258abd7bde03c4f9716ef6b/autoflake-2.3.1-py3-none-any.whl", hash = "sha256:3ae7495db9084b7b32818b4140e6dc4fc280b712fb414f5b8fe57b0a8e85a840", size = 32483 },
|
120 |
-
]
|
121 |
-
|
122 |
[[package]]
|
123 |
name = "backports-tarfile"
|
124 |
version = "1.2.0"
|
@@ -140,40 +127,6 @@ wheels = [
|
|
140 |
{ url = "https://files.pythonhosted.org/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl", hash = "sha256:b80878c9f40111313e55da8ba20bdba06d8fa3969fc68304167741bbf9e082ed", size = 147925 },
|
141 |
]
|
142 |
|
143 |
-
[[package]]
|
144 |
-
name = "black"
|
145 |
-
version = "24.10.0"
|
146 |
-
source = { registry = "https://pypi.org/simple" }
|
147 |
-
dependencies = [
|
148 |
-
{ name = "click" },
|
149 |
-
{ name = "mypy-extensions" },
|
150 |
-
{ name = "packaging" },
|
151 |
-
{ name = "pathspec" },
|
152 |
-
{ name = "platformdirs" },
|
153 |
-
{ name = "tomli", marker = "python_full_version < '3.11' or (extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124')" },
|
154 |
-
{ name = "typing-extensions", marker = "python_full_version < '3.11' or (extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124')" },
|
155 |
-
]
|
156 |
-
sdist = { url = "https://files.pythonhosted.org/packages/d8/0d/cc2fb42b8c50d80143221515dd7e4766995bd07c56c9a3ed30baf080b6dc/black-24.10.0.tar.gz", hash = "sha256:846ea64c97afe3bc677b761787993be4991810ecc7a4a937816dd6bddedc4875", size = 645813 }
|
157 |
-
wheels = [
|
158 |
-
{ url = "https://files.pythonhosted.org/packages/a3/f3/465c0eb5cddf7dbbfe1fecd9b875d1dcf51b88923cd2c1d7e9ab95c6336b/black-24.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e6668650ea4b685440857138e5fe40cde4d652633b1bdffc62933d0db4ed9812", size = 1623211 },
|
159 |
-
{ url = "https://files.pythonhosted.org/packages/df/57/b6d2da7d200773fdfcc224ffb87052cf283cec4d7102fab450b4a05996d8/black-24.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1c536fcf674217e87b8cc3657b81809d3c085d7bf3ef262ead700da345bfa6ea", size = 1457139 },
|
160 |
-
{ url = "https://files.pythonhosted.org/packages/6e/c5/9023b7673904a5188f9be81f5e129fff69f51f5515655fbd1d5a4e80a47b/black-24.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:649fff99a20bd06c6f727d2a27f401331dc0cc861fb69cde910fe95b01b5928f", size = 1753774 },
|
161 |
-
{ url = "https://files.pythonhosted.org/packages/e1/32/df7f18bd0e724e0d9748829765455d6643ec847b3f87e77456fc99d0edab/black-24.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:fe4d6476887de70546212c99ac9bd803d90b42fc4767f058a0baa895013fbb3e", size = 1414209 },
|
162 |
-
{ url = "https://files.pythonhosted.org/packages/c2/cc/7496bb63a9b06a954d3d0ac9fe7a73f3bf1cd92d7a58877c27f4ad1e9d41/black-24.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5a2221696a8224e335c28816a9d331a6c2ae15a2ee34ec857dcf3e45dbfa99ad", size = 1607468 },
|
163 |
-
{ url = "https://files.pythonhosted.org/packages/2b/e3/69a738fb5ba18b5422f50b4f143544c664d7da40f09c13969b2fd52900e0/black-24.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f9da3333530dbcecc1be13e69c250ed8dfa67f43c4005fb537bb426e19200d50", size = 1437270 },
|
164 |
-
{ url = "https://files.pythonhosted.org/packages/c9/9b/2db8045b45844665c720dcfe292fdaf2e49825810c0103e1191515fc101a/black-24.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4007b1393d902b48b36958a216c20c4482f601569d19ed1df294a496eb366392", size = 1737061 },
|
165 |
-
{ url = "https://files.pythonhosted.org/packages/a3/95/17d4a09a5be5f8c65aa4a361444d95edc45def0de887810f508d3f65db7a/black-24.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:394d4ddc64782e51153eadcaaca95144ac4c35e27ef9b0a42e121ae7e57a9175", size = 1423293 },
|
166 |
-
{ url = "https://files.pythonhosted.org/packages/90/04/bf74c71f592bcd761610bbf67e23e6a3cff824780761f536512437f1e655/black-24.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b5e39e0fae001df40f95bd8cc36b9165c5e2ea88900167bddf258bacef9bbdc3", size = 1644256 },
|
167 |
-
{ url = "https://files.pythonhosted.org/packages/4c/ea/a77bab4cf1887f4b2e0bce5516ea0b3ff7d04ba96af21d65024629afedb6/black-24.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d37d422772111794b26757c5b55a3eade028aa3fde43121ab7b673d050949d65", size = 1448534 },
|
168 |
-
{ url = "https://files.pythonhosted.org/packages/4e/3e/443ef8bc1fbda78e61f79157f303893f3fddf19ca3c8989b163eb3469a12/black-24.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:14b3502784f09ce2443830e3133dacf2c0110d45191ed470ecb04d0f5f6fcb0f", size = 1761892 },
|
169 |
-
{ url = "https://files.pythonhosted.org/packages/52/93/eac95ff229049a6901bc84fec6908a5124b8a0b7c26ea766b3b8a5debd22/black-24.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:30d2c30dc5139211dda799758559d1b049f7f14c580c409d6ad925b74a4208a8", size = 1434796 },
|
170 |
-
{ url = "https://files.pythonhosted.org/packages/d0/a0/a993f58d4ecfba035e61fca4e9f64a2ecae838fc9f33ab798c62173ed75c/black-24.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cbacacb19e922a1d75ef2b6ccaefcd6e93a2c05ede32f06a21386a04cedb981", size = 1643986 },
|
171 |
-
{ url = "https://files.pythonhosted.org/packages/37/d5/602d0ef5dfcace3fb4f79c436762f130abd9ee8d950fa2abdbf8bbc555e0/black-24.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1f93102e0c5bb3907451063e08b9876dbeac810e7da5a8bfb7aeb5a9ef89066b", size = 1448085 },
|
172 |
-
{ url = "https://files.pythonhosted.org/packages/47/6d/a3a239e938960df1a662b93d6230d4f3e9b4a22982d060fc38c42f45a56b/black-24.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ddacb691cdcdf77b96f549cf9591701d8db36b2f19519373d60d31746068dbf2", size = 1760928 },
|
173 |
-
{ url = "https://files.pythonhosted.org/packages/dd/cf/af018e13b0eddfb434df4d9cd1b2b7892bab119f7a20123e93f6910982e8/black-24.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:680359d932801c76d2e9c9068d05c6b107f2584b2a5b88831c83962eb9984c1b", size = 1436875 },
|
174 |
-
{ url = "https://files.pythonhosted.org/packages/8d/a7/4b27c50537ebca8bec139b872861f9d2bf501c5ec51fcf897cb924d9e264/black-24.10.0-py3-none-any.whl", hash = "sha256:3bb2b7a1f7b685f85b11fed1ef10f8a9148bceb49853e47a294a3dd963c1dd7d", size = 206898 },
|
175 |
-
]
|
176 |
-
|
177 |
[[package]]
|
178 |
name = "certifi"
|
179 |
version = "2025.1.31"
|
@@ -582,7 +535,7 @@ wheels = [
|
|
582 |
|
583 |
[[package]]
|
584 |
name = "docling-serve"
|
585 |
-
version = "0.
|
586 |
source = { editable = "." }
|
587 |
dependencies = [
|
588 |
{ name = "docling" },
|
@@ -597,10 +550,10 @@ dependencies = [
|
|
597 |
|
598 |
[package.optional-dependencies]
|
599 |
cpu = [
|
600 |
-
{ name = "torch", version = "2.6.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
601 |
-
{ name = "torch", version = "2.6.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
602 |
-
{ name = "torchvision", version = "0.21.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine == 'aarch64' and sys_platform == 'linux')" },
|
603 |
-
{ name = "torchvision", version = "0.21.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(platform_machine == 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },
|
604 |
]
|
605 |
cu124 = [
|
606 |
{ name = "torch", version = "2.6.0+cu124", source = { registry = "https://download.pytorch.org/whl/cu124" } },
|
@@ -619,16 +572,13 @@ ui = [
|
|
619 |
|
620 |
[package.dev-dependencies]
|
621 |
dev = [
|
622 |
-
{ name = "autoflake" },
|
623 |
-
{ name = "black" },
|
624 |
-
{ name = "flake8" },
|
625 |
-
{ name = "isort" },
|
626 |
{ name = "mypy" },
|
627 |
{ name = "pre-commit" },
|
628 |
{ name = "pytest" },
|
629 |
{ name = "pytest-asyncio" },
|
630 |
{ name = "pytest-check" },
|
631 |
{ name = "python-semantic-release" },
|
|
|
632 |
]
|
633 |
|
634 |
[package.metadata]
|
@@ -654,16 +604,13 @@ provides-extras = ["ui", "tesserocr", "rapidocr", "cpu", "cu124"]
|
|
654 |
|
655 |
[package.metadata.requires-dev]
|
656 |
dev = [
|
657 |
-
{ name = "autoflake", specifier = "~=2.3" },
|
658 |
-
{ name = "black", specifier = "~=24.8" },
|
659 |
-
{ name = "flake8", specifier = "~=7.1" },
|
660 |
-
{ name = "isort", specifier = "~=5.13" },
|
661 |
{ name = "mypy", specifier = "~=1.11" },
|
662 |
{ name = "pre-commit", specifier = "~=3.8" },
|
663 |
{ name = "pytest", specifier = "~=8.3" },
|
664 |
{ name = "pytest-asyncio", specifier = "~=0.24" },
|
665 |
{ name = "pytest-check", specifier = "~=2.4" },
|
666 |
{ name = "python-semantic-release", specifier = "~=7.32" },
|
|
|
667 |
]
|
668 |
|
669 |
[[package]]
|
@@ -813,20 +760,6 @@ wheels = [
|
|
813 |
{ url = "https://files.pythonhosted.org/packages/18/79/1b8fa1bb3568781e84c9200f951c735f3f157429f44be0495da55894d620/filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25", size = 19970 },
|
814 |
]
|
815 |
|
816 |
-
[[package]]
|
817 |
-
name = "flake8"
|
818 |
-
version = "7.1.2"
|
819 |
-
source = { registry = "https://pypi.org/simple" }
|
820 |
-
dependencies = [
|
821 |
-
{ name = "mccabe" },
|
822 |
-
{ name = "pycodestyle" },
|
823 |
-
{ name = "pyflakes" },
|
824 |
-
]
|
825 |
-
sdist = { url = "https://files.pythonhosted.org/packages/58/16/3f2a0bb700ad65ac9663262905a025917c020a3f92f014d2ba8964b4602c/flake8-7.1.2.tar.gz", hash = "sha256:c586ffd0b41540951ae41af572e6790dbd49fc12b3aa2541685d253d9bd504bd", size = 48119 }
|
826 |
-
wheels = [
|
827 |
-
{ url = "https://files.pythonhosted.org/packages/35/f8/08d37b2cd89da306e3520bd27f8a85692122b42b56c0c2c3784ff09c022f/flake8-7.1.2-py2.py3-none-any.whl", hash = "sha256:1cbc62e65536f65e6d754dfe6f1bada7f5cf392d6f5db3c2b85892466c3e7c1a", size = 57745 },
|
828 |
-
]
|
829 |
-
|
830 |
[[package]]
|
831 |
name = "flatbuffers"
|
832 |
version = "25.2.10"
|
@@ -1088,15 +1021,6 @@ wheels = [
|
|
1088 |
{ url = "https://files.pythonhosted.org/packages/0a/66/7f8c48009c72d73bc6bbe6eb87ac838d6a526146f7dab14af671121eb379/invoke-2.2.0-py3-none-any.whl", hash = "sha256:6ea924cc53d4f78e3d98bc436b08069a03077e6f85ad1ddaa8a116d7dad15820", size = 160274 },
|
1089 |
]
|
1090 |
|
1091 |
-
[[package]]
|
1092 |
-
name = "isort"
|
1093 |
-
version = "5.13.2"
|
1094 |
-
source = { registry = "https://pypi.org/simple" }
|
1095 |
-
sdist = { url = "https://files.pythonhosted.org/packages/87/f9/c1eb8635a24e87ade2efce21e3ce8cd6b8630bb685ddc9cdaca1349b2eb5/isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109", size = 175303 }
|
1096 |
-
wheels = [
|
1097 |
-
{ url = "https://files.pythonhosted.org/packages/d1/b3/8def84f539e7d2289a02f0524b944b15d7c75dab7628bedf1c4f0992029c/isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6", size = 92310 },
|
1098 |
-
]
|
1099 |
-
|
1100 |
[[package]]
|
1101 |
name = "jaraco-classes"
|
1102 |
version = "3.4.0"
|
@@ -1382,15 +1306,6 @@ wheels = [
|
|
1382 |
{ url = "https://files.pythonhosted.org/packages/3f/14/c3554d512d5f9100a95e737502f4a2323a1959f6d0d01e0d0997b35f7b10/MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:823b65d8706e32ad2df51ed89496147a42a2a6e01c13cfb6ffb8b1e92bc910bb", size = 17127 },
|
1383 |
]
|
1384 |
|
1385 |
-
[[package]]
|
1386 |
-
name = "mccabe"
|
1387 |
-
version = "0.7.0"
|
1388 |
-
source = { registry = "https://pypi.org/simple" }
|
1389 |
-
sdist = { url = "https://files.pythonhosted.org/packages/e7/ff/0ffefdcac38932a54d2b5eed4e0ba8a408f215002cd178ad1df0f2806ff8/mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325", size = 9658 }
|
1390 |
-
wheels = [
|
1391 |
-
{ url = "https://files.pythonhosted.org/packages/27/1a/1f68f9ba0c207934b35b86a8ca3aad8395a3d6dd7921c0686e23853ff5a9/mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e", size = 7350 },
|
1392 |
-
]
|
1393 |
-
|
1394 |
[[package]]
|
1395 |
name = "mdurl"
|
1396 |
version = "0.1.2"
|
@@ -1949,15 +1864,6 @@ wheels = [
|
|
1949 |
{ url = "https://files.pythonhosted.org/packages/ab/5f/b38085618b950b79d2d9164a711c52b10aefc0ae6833b96f626b7021b2ed/pandas-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ad5b65698ab28ed8d7f18790a0dc58005c7629f227be9ecc1072aa74c0c1d43a", size = 13098436 },
|
1950 |
]
|
1951 |
|
1952 |
-
[[package]]
|
1953 |
-
name = "pathspec"
|
1954 |
-
version = "0.12.1"
|
1955 |
-
source = { registry = "https://pypi.org/simple" }
|
1956 |
-
sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043 }
|
1957 |
-
wheels = [
|
1958 |
-
{ url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191 },
|
1959 |
-
]
|
1960 |
-
|
1961 |
[[package]]
|
1962 |
name = "pillow"
|
1963 |
version = "11.1.0"
|
@@ -2114,15 +2020,6 @@ wheels = [
|
|
2114 |
{ url = "https://files.pythonhosted.org/packages/d5/19/9ff4551b42f2068686c50c0d199072fa67aee57fc5cf86770cacf71efda3/pyclipper-1.3.0.post6-cp313-cp313-win_amd64.whl", hash = "sha256:e5ff68fa770ac654c7974fc78792978796f068bd274e95930c0691c31e192889", size = 109672 },
|
2115 |
]
|
2116 |
|
2117 |
-
[[package]]
|
2118 |
-
name = "pycodestyle"
|
2119 |
-
version = "2.12.1"
|
2120 |
-
source = { registry = "https://pypi.org/simple" }
|
2121 |
-
sdist = { url = "https://files.pythonhosted.org/packages/43/aa/210b2c9aedd8c1cbeea31a50e42050ad56187754b34eb214c46709445801/pycodestyle-2.12.1.tar.gz", hash = "sha256:6838eae08bbce4f6accd5d5572075c63626a15ee3e6f842df996bf62f6d73521", size = 39232 }
|
2122 |
-
wheels = [
|
2123 |
-
{ url = "https://files.pythonhosted.org/packages/3a/d8/a211b3f85e99a0daa2ddec96c949cac6824bd305b040571b82a03dd62636/pycodestyle-2.12.1-py2.py3-none-any.whl", hash = "sha256:46f0fb92069a7c28ab7bb558f05bfc0110dac69a0cd23c61ea0040283a9d78b3", size = 31284 },
|
2124 |
-
]
|
2125 |
-
|
2126 |
[[package]]
|
2127 |
name = "pycparser"
|
2128 |
version = "2.22"
|
@@ -2243,15 +2140,6 @@ wheels = [
|
|
2243 |
{ url = "https://files.pythonhosted.org/packages/a6/53/d78dc063216e62fc55f6b2eebb447f6a4b0a59f55c8406376f76bf959b08/pydub-0.25.1-py2.py3-none-any.whl", hash = "sha256:65617e33033874b59d87db603aa1ed450633288aefead953b30bded59cb599a6", size = 32327 },
|
2244 |
]
|
2245 |
|
2246 |
-
[[package]]
|
2247 |
-
name = "pyflakes"
|
2248 |
-
version = "3.2.0"
|
2249 |
-
source = { registry = "https://pypi.org/simple" }
|
2250 |
-
sdist = { url = "https://files.pythonhosted.org/packages/57/f9/669d8c9c86613c9d568757c7f5824bd3197d7b1c6c27553bc5618a27cce2/pyflakes-3.2.0.tar.gz", hash = "sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f", size = 63788 }
|
2251 |
-
wheels = [
|
2252 |
-
{ url = "https://files.pythonhosted.org/packages/d4/d7/f1b7db88d8e4417c5d47adad627a93547f44bdc9028372dbd2313f34a855/pyflakes-3.2.0-py2.py3-none-any.whl", hash = "sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a", size = 62725 },
|
2253 |
-
]
|
2254 |
-
|
2255 |
[[package]]
|
2256 |
name = "pygments"
|
2257 |
version = "2.19.1"
|
|
|
106 |
{ url = "https://files.pythonhosted.org/packages/5d/35/be73b6015511aa0173ec595fc579133b797ad532996f2998fd6b8d1bbe6b/audioop_lts-0.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:78bfb3703388c780edf900be66e07de5a3d4105ca8e8720c5c4d67927e0b15d0", size = 23918 },
|
107 |
]
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
[[package]]
|
110 |
name = "backports-tarfile"
|
111 |
version = "1.2.0"
|
|
|
127 |
{ url = "https://files.pythonhosted.org/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl", hash = "sha256:b80878c9f40111313e55da8ba20bdba06d8fa3969fc68304167741bbf9e082ed", size = 147925 },
|
128 |
]
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
[[package]]
|
131 |
name = "certifi"
|
132 |
version = "2025.1.31"
|
|
|
535 |
|
536 |
[[package]]
|
537 |
name = "docling-serve"
|
538 |
+
version = "0.3.0"
|
539 |
source = { editable = "." }
|
540 |
dependencies = [
|
541 |
{ name = "docling" },
|
|
|
550 |
|
551 |
[package.optional-dependencies]
|
552 |
cpu = [
|
553 |
+
{ name = "torch", version = "2.6.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin' and extra == 'extra-13-docling-serve-cpu') or (platform_machine == 'x86_64' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124') or (sys_platform != 'darwin' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124')" },
|
554 |
+
{ name = "torch", version = "2.6.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(platform_machine == 'x86_64' and extra == 'extra-13-docling-serve-cpu') or (platform_machine != 'x86_64' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124') or (sys_platform != 'darwin' and extra == 'extra-13-docling-serve-cpu')" },
|
555 |
+
{ name = "torchvision", version = "0.21.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin' and extra == 'extra-13-docling-serve-cpu') or (platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'extra-13-docling-serve-cpu') or (sys_platform != 'darwin' and sys_platform != 'linux' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124') or (sys_platform == 'darwin' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124') or (sys_platform == 'linux' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124')" },
|
556 |
+
{ name = "torchvision", version = "0.21.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(platform_machine == 'x86_64' and sys_platform == 'darwin' and extra == 'extra-13-docling-serve-cpu') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'extra-13-docling-serve-cpu') or (sys_platform != 'darwin' and sys_platform != 'linux' and extra == 'extra-13-docling-serve-cpu') or (sys_platform == 'darwin' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124') or (sys_platform == 'linux' and extra == 'extra-13-docling-serve-cpu' and extra == 'extra-13-docling-serve-cu124')" },
|
557 |
]
|
558 |
cu124 = [
|
559 |
{ name = "torch", version = "2.6.0+cu124", source = { registry = "https://download.pytorch.org/whl/cu124" } },
|
|
|
572 |
|
573 |
[package.dev-dependencies]
|
574 |
dev = [
|
|
|
|
|
|
|
|
|
575 |
{ name = "mypy" },
|
576 |
{ name = "pre-commit" },
|
577 |
{ name = "pytest" },
|
578 |
{ name = "pytest-asyncio" },
|
579 |
{ name = "pytest-check" },
|
580 |
{ name = "python-semantic-release" },
|
581 |
+
{ name = "ruff" },
|
582 |
]
|
583 |
|
584 |
[package.metadata]
|
|
|
604 |
|
605 |
[package.metadata.requires-dev]
|
606 |
dev = [
|
|
|
|
|
|
|
|
|
607 |
{ name = "mypy", specifier = "~=1.11" },
|
608 |
{ name = "pre-commit", specifier = "~=3.8" },
|
609 |
{ name = "pytest", specifier = "~=8.3" },
|
610 |
{ name = "pytest-asyncio", specifier = "~=0.24" },
|
611 |
{ name = "pytest-check", specifier = "~=2.4" },
|
612 |
{ name = "python-semantic-release", specifier = "~=7.32" },
|
613 |
+
{ name = "ruff", specifier = ">=0.9.6" },
|
614 |
]
|
615 |
|
616 |
[[package]]
|
|
|
760 |
{ url = "https://files.pythonhosted.org/packages/18/79/1b8fa1bb3568781e84c9200f951c735f3f157429f44be0495da55894d620/filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25", size = 19970 },
|
761 |
]
|
762 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
763 |
[[package]]
|
764 |
name = "flatbuffers"
|
765 |
version = "25.2.10"
|
|
|
1021 |
{ url = "https://files.pythonhosted.org/packages/0a/66/7f8c48009c72d73bc6bbe6eb87ac838d6a526146f7dab14af671121eb379/invoke-2.2.0-py3-none-any.whl", hash = "sha256:6ea924cc53d4f78e3d98bc436b08069a03077e6f85ad1ddaa8a116d7dad15820", size = 160274 },
|
1022 |
]
|
1023 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1024 |
[[package]]
|
1025 |
name = "jaraco-classes"
|
1026 |
version = "3.4.0"
|
|
|
1306 |
{ url = "https://files.pythonhosted.org/packages/3f/14/c3554d512d5f9100a95e737502f4a2323a1959f6d0d01e0d0997b35f7b10/MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:823b65d8706e32ad2df51ed89496147a42a2a6e01c13cfb6ffb8b1e92bc910bb", size = 17127 },
|
1307 |
]
|
1308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
[[package]]
|
1310 |
name = "mdurl"
|
1311 |
version = "0.1.2"
|
|
|
1864 |
{ url = "https://files.pythonhosted.org/packages/ab/5f/b38085618b950b79d2d9164a711c52b10aefc0ae6833b96f626b7021b2ed/pandas-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ad5b65698ab28ed8d7f18790a0dc58005c7629f227be9ecc1072aa74c0c1d43a", size = 13098436 },
|
1865 |
]
|
1866 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1867 |
[[package]]
|
1868 |
name = "pillow"
|
1869 |
version = "11.1.0"
|
|
|
2020 |
{ url = "https://files.pythonhosted.org/packages/d5/19/9ff4551b42f2068686c50c0d199072fa67aee57fc5cf86770cacf71efda3/pyclipper-1.3.0.post6-cp313-cp313-win_amd64.whl", hash = "sha256:e5ff68fa770ac654c7974fc78792978796f068bd274e95930c0691c31e192889", size = 109672 },
|
2021 |
]
|
2022 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023 |
[[package]]
|
2024 |
name = "pycparser"
|
2025 |
version = "2.22"
|
|
|
2140 |
{ url = "https://files.pythonhosted.org/packages/a6/53/d78dc063216e62fc55f6b2eebb447f6a4b0a59f55c8406376f76bf959b08/pydub-0.25.1-py2.py3-none-any.whl", hash = "sha256:65617e33033874b59d87db603aa1ed450633288aefead953b30bded59cb599a6", size = 32327 },
|
2141 |
]
|
2142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2143 |
[[package]]
|
2144 |
name = "pygments"
|
2145 |
version = "2.19.1"
|