Skip to content

Commit 094e5d9

Browse files
committed
ci: refine tach client and foundation layers
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
1 parent 3117569 commit 094e5d9

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

tach.toml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,28 @@ exclude = [
88
]
99
root_module = "ignore"
1010
source_roots = ["."]
11-
# Layers (highest first). Entrypoints and pipeline sit cleanly above the
12-
# rest of the codebase. `models` contains the model/stage modules that
13-
# core never imports back (model factories, extraction, plugins, vlm
14-
# pipeline models, and the "upper" stages: page_assemble, page_preproc,
15-
# reading_order, picture_description, vlm_convert). `core` carries the
16-
# cyclic datamodel<->backend and utils<->stages clusters plus the
17-
# inference engines and the six "core stages" that utils imports back
18-
# (chart_extraction, code_formula, layout, ocr, picture_classifier,
19-
# table_structure). Breaking those cycles is a code-level refactor and
20-
# would unlock a finer layering later.
11+
# Layers are ordered highest first. Entrypoints, clients, pipeline, and the
12+
# acyclic model/stage modules sit cleanly above the core conversion graph.
13+
# `core` still carries the cyclic datamodel<->backend and utils<->stages
14+
# clusters plus inference engines. Breaking those cycles is a code-level
15+
# refactor and would unlock finer datamodel/backend/VLM layers later.
2116
layers = [
2217
"entrypoints",
18+
"clients",
2319
"pipeline",
2420
"models",
2521
"core",
22+
"foundation",
2623
]
2724

2825
[[modules]]
2926
path = "docling.exceptions"
30-
layer = "core"
27+
layer = "foundation"
3128
depends_on = []
3229

3330
[[modules]]
3431
path = "docling.chunking"
35-
layer = "core"
32+
layer = "foundation"
3633
depends_on = []
3734

3835
[[modules]]
@@ -106,7 +103,7 @@ depends_on = [
106103

107104
[[modules]]
108105
path = "docling.datamodel.backend_options"
109-
layer = "core"
106+
layer = "foundation"
110107
depends_on = []
111108

112109
[[modules]]
@@ -132,7 +129,7 @@ depends_on = [
132129

133130
[[modules]]
134131
path = "docling.datamodel.service"
135-
layer = "core"
132+
layer = "clients"
136133
depends_on = [
137134
"docling.datamodel",
138135
"docling.datamodel.pipeline_options_vlm_model",
@@ -170,7 +167,7 @@ depends_on = [
170167

171168
[[modules]]
172169
path = "docling.models.utils"
173-
layer = "core"
170+
layer = "foundation"
174171
depends_on = []
175172

176173
[[modules]]
@@ -545,7 +542,7 @@ depends_on = [
545542

546543
[[modules]]
547544
path = "docling.service_client"
548-
layer = "core"
545+
layer = "clients"
549546
depends_on = [
550547
"docling.backend",
551548
"docling.datamodel",
@@ -576,7 +573,7 @@ depends_on = []
576573

577574
[[modules]]
578575
path = "docling.experimental.datamodel"
579-
layer = "core"
576+
layer = "models"
580577
depends_on = [
581578
"docling.datamodel",
582579
"docling.datamodel.layout_model_specs",
@@ -586,7 +583,7 @@ depends_on = [
586583

587584
[[modules]]
588585
path = "docling.experimental.models"
589-
layer = "core"
586+
layer = "models"
590587
depends_on = [
591588
"docling.datamodel",
592589
"docling.experimental.datamodel",

0 commit comments

Comments
 (0)