repo hygiene, tooling config, v0.2.0
Some checks failed
tests / core (macos-latest, py3.11) (push) Has been cancelled
tests / core (macos-latest, py3.12) (push) Has been cancelled
tests / core (macos-latest, py3.13) (push) Has been cancelled
tests / core (ubuntu-latest, py3.11) (push) Has been cancelled
tests / core (ubuntu-latest, py3.12) (push) Has been cancelled
tests / core (ubuntu-latest, py3.13) (push) Has been cancelled
tests / doctor CLI smoke test (push) Has been cancelled

- Untrack src/ocr_pipeline.egg-info from git, delete pyproject.toml~,
  stale run_008/run_009 dirs
- Ruff config moved to [tool.ruff.lint] (silences deprecation warning)
- Pre-commit: bump revs (ruff v0.14.13, mypy v1.18.1, hooks v6.0.0);
  drop redundant isort hook (ruff I already sorts imports)
- mypy: add ignore_missing_imports for optional deps; types-PyYAML in
  dev extras; python_version=3.12 for numpy 2.5 stubs compat; CI step
- Doctor: suppress paddle ccache UserWarning noise during check
- CHANGELOG dated for 0.2.0; README minimal-style rewrite with
  collapsible details sections
- Bump version to 0.2.0
This commit is contained in:
2026-07-21 00:40:19 +02:00
parent bf968affaa
commit 7de0e716eb
14 changed files with 81 additions and 416 deletions

View File

@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.2.0] - 2026-07-21
### Added
- Knowledge graph: `kg_ocr.graph` builds a NetworkX graph (documents, chunks, entities, citations, entity co-occurrence) from pipeline chunk markdown; `kg_ocr.graph.analyzer` provides summaries, top entities/citations, and anomaly detection (low OCR confidence, empty chunks/documents, entity hubs).
@@ -32,6 +32,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `run` results table now shows Skipped count.
- Run directories are created lazily on first write (no empty `run_NNN`).
- `kg_ocr` is now a functional knowledge-graph package (graph/export need only networkx); txtai/litellm imports are lazy so the package imports in slim environments.
- Ruff settings moved to `[tool.ruff.lint]` (silences per-run deprecation warning).
- Pre-commit: bumped ruff, mypy, pre-commit-hooks; dropped the redundant isort hook.
- mypy: added `ignore_missing_imports` for optional deps + `types-PyYAML` in dev extras; `python_version = "3.12"` to match numpy 2.5 stubs.
- README: minimal-style rewrite with collapsible `<details>` sections.
### Fixed
- ISBN regex no longer false-positives on years, URLs, job IDs, or dilutions. Now requires an explicit `ISBN` prefix and matches strict 13- or 10-digit structures.
@@ -40,6 +44,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- Dead `src/ocr_pipeline/watch.py` shim (shadowed by the `watch/` package).
- Stub `kg_ocr/cli/` directory (commands now in the main `ocr-pipeline` CLI).
- Untracked `src/ocr_pipeline.egg-info` from git (still gitignored).
- Unused core dependencies: `tqdm`, `scikit-image`, `sqlite-utils`, `xxhash`, `python-slugify`, `python-magic`, `legacy-cgi`.
- Core dependency on `spacy` (moved to `scientific` extra).
- Core dependency on `paddleocr`/`paddlepaddle` (moved to `paddle` extra).