@@ -8,31 +8,28 @@ exclude = [
88]
99root_module = " ignore"
1010source_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.
2116layers = [
2217 " entrypoints" ,
18+ " clients" ,
2319 " pipeline" ,
2420 " models" ,
2521 " core" ,
22+ " foundation" ,
2623]
2724
2825[[modules ]]
2926path = " docling.exceptions"
30- layer = " core "
27+ layer = " foundation "
3128depends_on = []
3229
3330[[modules ]]
3431path = " docling.chunking"
35- layer = " core "
32+ layer = " foundation "
3633depends_on = []
3734
3835[[modules ]]
@@ -106,7 +103,7 @@ depends_on = [
106103
107104[[modules ]]
108105path = " docling.datamodel.backend_options"
109- layer = " core "
106+ layer = " foundation "
110107depends_on = []
111108
112109[[modules ]]
@@ -132,7 +129,7 @@ depends_on = [
132129
133130[[modules ]]
134131path = " docling.datamodel.service"
135- layer = " core "
132+ layer = " clients "
136133depends_on = [
137134 " docling.datamodel" ,
138135 " docling.datamodel.pipeline_options_vlm_model" ,
@@ -170,7 +167,7 @@ depends_on = [
170167
171168[[modules ]]
172169path = " docling.models.utils"
173- layer = " core "
170+ layer = " foundation "
174171depends_on = []
175172
176173[[modules ]]
@@ -545,7 +542,7 @@ depends_on = [
545542
546543[[modules ]]
547544path = " docling.service_client"
548- layer = " core "
545+ layer = " clients "
549546depends_on = [
550547 " docling.backend" ,
551548 " docling.datamodel" ,
@@ -576,7 +573,7 @@ depends_on = []
576573
577574[[modules ]]
578575path = " docling.experimental.datamodel"
579- layer = " core "
576+ layer = " models "
580577depends_on = [
581578 " docling.datamodel" ,
582579 " docling.datamodel.layout_model_specs" ,
@@ -586,7 +583,7 @@ depends_on = [
586583
587584[[modules ]]
588585path = " docling.experimental.models"
589- layer = " core "
586+ layer = " models "
590587depends_on = [
591588 " docling.datamodel" ,
592589 " docling.experimental.datamodel" ,
0 commit comments