Skip to content

[reading order] Improve reading order and add exporters - #2116

Merged
felixdittrich92 merged 19 commits into
mindee:mainfrom
felixdittrich92:reading-order-and-exporters
Jul 27, 2026
Merged

[reading order] Improve reading order and add exporters#2116
felixdittrich92 merged 19 commits into
mindee:mainfrom
felixdittrich92:reading-order-and-exporters

Extend doc builder table tests

18eb960
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jul 27, 2026 in 0s

56 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 9
- Added 56
           

Complexity increasing per file
==============================
- doctr/models/builder.py  49
- doctr/models/reading_order/base.py  7
- doctr/io/exporters.py  244
         

Complexity decreasing per file
==============================
+ doctr/io/elements.py  -16
         

See the complete overview on Codacy

Annotations

Check warning on line 2 in doctr/io/__init__.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/__init__.py#L2

'.exporters.*' imported but unused (F401)

Check warning on line 8 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L8

Using ElementTree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace ElementTree with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.

Check warning on line 9 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L9

Using Element to parse untrusted XML data is known to be vulnerable to XML attacks. Replace Element with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.

Check warning on line 10 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L10

Using SubElement to parse untrusted XML data is known to be vulnerable to XML attacks. Replace SubElement with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.

Check warning on line 33 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L33

Redefining built-in 'format'

Check notice on line 41 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L41

Missing blank line after last section ('Returns') (D413)

Check notice on line 41 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L41

Missing dashed underline after section ('Returns') (D407)

Check notice on line 41 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L41

Multi-line docstring summary should start at the second line (D213)

Check notice on line 41 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L41

Section name should end with a newline ('Returns', not 'Returns:') (D406)

Check notice on line 72 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L72

Multi-line docstring summary should start at the second line (D213)

Check notice on line 93 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L93

Multi-line docstring summary should start at the second line (D213)

Check notice on line 115 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L115

Missing blank line after last section ('Returns') (D413)

Check notice on line 115 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L115

Missing dashed underline after section ('Returns') (D407)

Check notice on line 115 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L115

Multi-line docstring summary should start at the second line (D213)

Check notice on line 115 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L115

Section name should end with a newline ('Returns', not 'Returns:') (D406)

Check notice on line 220 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L220

Multi-line docstring summary should start at the second line (D213)

Check notice on line 235 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L235

Missing blank line after last section ('Returns') (D413)

Check notice on line 279 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L279

1 blank line required before class docstring (found 0) (D203)

Check notice on line 279 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L279

Multi-line docstring summary should start at the second line (D213)

Check notice on line 292 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L292

First line should end with a period, question mark, or exclamation point (not 't') (D415)

Check notice on line 296 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L296

First line should end with a period, question mark, or exclamation point (not 't') (D415)

Check notice on line 300 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L300

First line should end with a period, question mark, or exclamation point (not 't') (D415)

Check notice on line 304 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L304

First line should end with a period, question mark, or exclamation point (not 't') (D415)

Check notice on line 320 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L320

Missing blank line after last section ('Returns') (D413)

Check notice on line 320 in doctr/io/exporters.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/io/exporters.py#L320

Missing dashed underline after section ('Returns') (D407)