Commit Graph
180 Commits
Author SHA1 Message Date
github-actions[bot] 9728ef71fb chore: bump version to 2.65.2 [skip ci] 2026-03-11 15:54:34 +01:00
github-actions[bot] 5a7e567323 chore: bump version to 2.65.1 [skip ci] 2026-02-13 12:10:52 +00:00
github-actions[bot] f0cbfae063 chore: bump version to 2.65.0 [skip ci] 2026-02-13 11:26:24 +00:00
Panos Vagenas 2793dda9d7 fix: switch XML parsing (#509)
* fix: switch xml parsing

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* move types package to dev

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

---------

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2026-02-11 14:39:34 +01:00
github-actions[bot] 5fa0d3672c chore: bump version to 2.64.0 [skip ci] 2026-02-09 12:04:16 +00:00
github-actions[bot] 46934cc436 chore: bump version to 2.63.0 [skip ci] 2026-02-03 14:40:27 +00:00
github-actions[bot] 7f4e5271f7 chore: bump version to 2.62.0 [skip ci] 2026-01-30 14:01:11 +00:00
github-actions[bot] ea47939010 chore: bump version to 2.61.0 [skip ci] 2026-01-26 12:05:12 +00:00
github-actions[bot] 7b032b76ec chore: bump version to 2.60.2 [skip ci] 2026-01-23 12:28:41 +00:00
Michele Dolfi 01373c4aab fix: drop python 3.9 and pin built tree-sitter versions (#487)
* drop python 3.9

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* apply linter for python 3.10 changes

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2026-01-22 19:40:35 +01:00
github-actions[bot] 47cf0bd745 chore: bump version to 2.60.1 [skip ci] 2026-01-22 18:28:08 +00:00
github-actions[bot] 0c49fb6adb chore: bump version to 2.60.0 [skip ci] 2026-01-20 08:46:31 +00:00
Cesar Berrospi Ramis d8bc627f87 build: upgrade dependencies in 'uv.lock' (#478)
Update file 'uv.lock' with latest dependency versions.
Set version upper limit for tree-sitter libraries for python compatiblity.

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
2026-01-14 10:54:55 +01:00
c73904e68e style: replace black, isort, flake8 and autoflake with ruff (#456)
* Added ruff to dev dependencies

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Added ruff settings to pyproject.toml as in docling

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Cleanup uf pyproject.toml

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Copied settings for ruff pre-commit hooks from docling

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Excluded test/data/** from ruff formatting / linting

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* ruff format

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Added some ignore statements to pyproject.toml such that ruff check raises fewer issues

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* ruff check --fix

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Ignored some more rules

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Fixed the rest of the errors that would only concern 1 - 3 files

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Added another ignore related to df for DataFrame names

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Modified CONTRIBUTING.md such that black / isort are replaced by ruff

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Added UP045 to ignore list such that Optional[...] does not raise

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Moved .flake8 configs to pyproject.toml

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Moved autoflake to be used with ruff

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Moved all .flake8 settings to pyproject.toml to be compatible with ruff (i.e. no separate [tool.flake8] section

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Removed flake8 from .pre-commit hooks

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Applied ruff format (again); formatted some files as the line-length = 120 equals now what was set for the .flake8 settings

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Set max-complexity to 30 (as was originally) in the pyproject.toml as one linting check would fail

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Adding PD901 to ignore list such that pre-commit hooks run fully again

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* Replaced dtype | None syntax by Optional[dtype] in remaining places

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>

* chore: fix 'test' ref in pyproject

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove typing List, Set, Tuple, Dict

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove UP015 check from ignore list

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove UP034 check from ignore list

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: normalize dashes in comments and docstrings

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove PD901 check from ignore list

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove C403 check from ignore list

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove C403, C413, C416 check from ignore list

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* style: remove E203, F811 check from ignore list

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

---------

Signed-off-by: Florian Schwarb <florian.schwarb@gmail.com>
Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
Co-authored-by: Florian Schwarb <florian.schwarb@gmail.com>
Co-authored-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
2026-01-13 17:03:10 +01:00
github-actions[bot] 74a2e27e20 chore: bump version to 2.59.0 [skip ci] 2026-01-12 16:39:47 +00:00
Michele Dolfi 980abab95f fix: make tree-sitter-java-orchard optional (#475)
make tree-sitter-java-orchard optional

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2026-01-12 17:33:46 +01:00
github-actions[bot] 37a287f511 chore: bump version to 2.58.1 [skip ci] 2026-01-09 16:31:56 +00:00
Michele Dolfi 8c330ab81a fix(deps): switch to tree-sitter-java-orchard and expand typer compatibility (#473)
* switch to tree-sitter-java-orchard and work with newer typer

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* update lock for typer

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* use new lib

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* ignore 3.9 issues

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* lazy import tree-splitter languages

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2026-01-09 17:18:37 +01:00
github-actions[bot] ddc8dd679a chore: bump version to 2.58.0 [skip ci] 2026-01-08 17:10:21 +00:00
github-actions[bot] a0ded21ac7 chore: bump version to 2.57.0 [skip ci] 2025-12-18 14:17:39 +00:00
github-actions[bot] 2920f2450c chore: bump version to 2.56.0 [skip ci] 2025-12-17 14:39:11 +00:00
Peter W. J. Staar dda9c885a3 feat: idoctags serialization and deserialization matching the iso proposal (#457)
* Working on ISO standard for IDocTags

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the pre-commit, still tons of work to do

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* updated idoctag token class

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* need to start fixing the bugs and add proper tests for idoctags

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the tests

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* refactored the testing for dcotags and idoctags

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* updating the location tokens in idoctags

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* removed the DocumentToken

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the idt quot issue

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* reformatted

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* Added IDocTagsSerializationMode

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* working on the deserializer

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the captions for floating items

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* still need to fix some seserialization tests

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* finally all is working and reformatted

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* made the OTSL serialization and deserialization self-contained in IDocTags

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed some unclean code

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* did some fixes and clean up

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* added extra tests, expanded to deserialize to deal with nested lists

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* added the deserialization for formatting

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the formatting and the complex inline groups in nested lists

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* added get_category

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* make IS_SELFCLOSING a set

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* removed the regex

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the if ... return into if ... elif ... return

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the facets parsing

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the footnotes for Tables and Pictures in IDocTags

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* updated with latest doctags token table

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* removed private name

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

---------

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
2025-12-17 14:38:10 +01:00
github-actions[bot] 5ab8b8c2cc chore: bump version to 2.55.0 [skip ci] 2025-12-10 10:43:42 +00:00
github-actions[bot] d2fb47f958 chore: bump version to 2.54.1 [skip ci] 2025-12-08 12:58:06 +00:00
github-actions[bot] 70a665d7ea chore: bump version to 2.54.0 [skip ci] 2025-11-29 06:15:37 +00:00
github-actions[bot] e54524dd22 chore: bump version to 2.53.0 [skip ci] 2025-11-27 16:16:59 +00:00
github-actions[bot] 3fe8b5af52 chore: bump version to 2.52.0 [skip ci] 2025-11-20 14:15:55 +00:00
github-actions[bot] 6d48bf5307 chore: bump version to 2.51.1 [skip ci] 2025-11-14 13:30:10 +00:00
Panos Vagenas 57b019c58f chore: fix tree-sitter dependency constraints (#421)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-11-14 14:00:11 +01:00
github-actions[bot] d52bd37950 chore: bump version to 2.51.0 [skip ci] 2025-11-12 15:52:23 +00:00
3097645198 feat: add code chunking functionality (#398)
* initial code chunking for docling-core

* DCO Remediation Commit for Bridget McGinn <bridget.mcginn@ibm.com>

I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 334811a4edf0c9a8511a0e3cd31acda2df335d62

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* include language detections, add code chunking into hierarchical chunker

* add serializer, internal marking of chunkers, typing

* Update pyproject.toml

Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
Signed-off-by: Bridget <bridget.mcginn@ibm.com>

* Update docling_core/transforms/chunker/hierarchical_chunker.py

Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
Signed-off-by: Bridget <bridget.mcginn@ibm.com>

* run all pre-commit less pytest

* update test files for code ID

* DCO Remediation Commit for Bridget McGinn <bridget.mcginn@ibm.com>
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 46bb88ae3a00ebbdd33336e51b51e030c748425b
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 10e9ed8a0f28bdd4ae6156a84f19435319f4a5ce
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: d9827c749b72ecc902c66a24eb7fcb4db1b615fa
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 814dc6161134752b08f699eeef58535248893768

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* update uv.lock

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* revert to stricter treesitter versioning due to compatibility

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* DCO Remediation Commit for Bridget McGinn <bridget.mcginn@ibm.com>
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: a4a21e90d63da3aa46fd6f0681b065d6bf85305b
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 0266c6387066cd8e4d45ea02fcb417ade5eedd18
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 336dd6a2078272dd30ade58b4fc6392e7a2edf86
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 68890e9f48e6f310e27eb20eeb2d98d45c90bd36
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 3c65eef59e817e9bd8cd3c55e98e843e326dd7a2

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* remove language detection (to be run by client, i.e. docling)

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* align new dependency specs

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* address backticks, ABC, and supported languages feedback

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* remove Language class and reuse CodeLanguageLabel

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* DCO Remediation Commit for Bridget McGinn <bridget.mcginn@ibm.com>

I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 63c773907f
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 431d357053
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: f3175c2717
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 1a01de8557
I, Bridget McGinn <bridget.mcginn@ibm.com>, hereby add my Signed-off-by to this commit: 025aea31ab

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>

* refactoring and improvements

- encapsulated code chunking specifics to separate package
- clearly separated public vs internal API via module and method naming conventions
- simplified or removed parts not stricly necessary for public API (e.g. lang support querying, noopstrategy)
- split chunk data model to separate modules to prevent circular dependencies
- renamed DefaultCodeChunkingStrategy to Standard... for clarity as it need not be the default strategy
- fixed some issues (e.g. gen flag in test)

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

---------

Signed-off-by: Bridget McGinn <bridget.mcginn@ibm.com>
Signed-off-by: Bridget <bridget.mcginn@ibm.com>
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>
2025-11-12 10:28:54 +01:00
github-actions[bot] a54f6f075a chore: bump version to 2.50.1 [skip ci] 2025-11-04 13:19:32 +00:00
github-actions[bot] 9b9e8a7882 chore: bump version to 2.50.0 [skip ci] 2025-10-30 12:37:03 +00:00
github-actions[bot] 2ed4374c71 chore: bump version to 2.49.0 [skip ci] 2025-10-16 14:42:31 +00:00
Michele Dolfi 47b70d3c24 feat: python 3.14 compatibility (#403)
update deps for python 3.14 compatibility

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-10-16 15:58:29 +02:00
github-actions[bot] c52605dded chore: bump version to 2.48.4 [skip ci] 2025-10-01 09:09:37 +00:00
github-actions[bot] ec0978652f chore: bump version to 2.48.3 [skip ci] 2025-09-29 08:25:51 +00:00
Michele Dolfi 26d21e3b52 fix: pin larger range of typer (#394)
pin larger range of typer and update lock

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-09-24 05:05:06 +02:00
github-actions[bot] e234480b58 chore: bump version to 2.48.2 [skip ci] 2025-09-22 08:38:56 +00:00
github-actions[bot] 12292d7317 chore: bump version to 2.48.1 [skip ci] 2025-09-11 12:32:45 +00:00
github-actions[bot] cf73d256ef chore: bump version to 2.48.0 [skip ci] 2025-09-09 14:39:15 +00:00
github-actions[bot] c0b0c4cfd8 chore: bump version to 2.47.0 [skip ci] 2025-09-02 14:11:03 +00:00
github-actions[bot] d12621d3de chore: bump version to 2.46.0 [skip ci] 2025-09-01 09:30:18 +00:00
github-actions[bot] e9d4bd944c chore: bump version to 2.45.0 [skip ci] 2025-08-20 12:36:18 +00:00
github-actions[bot] 889088f5e1 chore: bump version to 2.44.2 [skip ci] 2025-08-14 09:43:15 +00:00
github-actions[bot] 8433d285f6 chore: bump version to 2.44.1 [skip ci] 2025-07-30 11:05:24 +00:00
github-actions[bot] 6be0c8b183 chore: bump version to 2.44.0 [skip ci] 2025-07-28 08:31:05 +00:00
github-actions[bot] 93dd0a9623 chore: bump version to 2.43.1 [skip ci] 2025-07-23 14:18:01 +00:00
github-actions[bot] 0c89bd0999 chore: bump version to 2.43.0 [skip ci] 2025-07-16 07:27:59 +00:00
github-actions[bot] 7b2569845a chore: bump version to 2.42.0 [skip ci] 2025-07-09 12:27:06 +00:00