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
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:
@@ -36,9 +36,13 @@ def check_paddle() -> CheckResult:
|
||||
if not _has_module("paddleocr"):
|
||||
return CheckResult("PaddleOCR", "warn", "not installed", "uv sync --extra paddle")
|
||||
try:
|
||||
from paddleocr import PaddleOCR # type: ignore[import-not-found]
|
||||
import warnings
|
||||
|
||||
PaddleOCR(use_angle_cls=True, lang="en", use_gpu=False, show_log=False)
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore")
|
||||
from paddleocr import PaddleOCR # type: ignore[import-not-found]
|
||||
|
||||
PaddleOCR(use_angle_cls=True, lang="en", use_gpu=False, show_log=False)
|
||||
return CheckResult("PaddleOCR", "ok", "initialized (en)")
|
||||
except Exception as exc:
|
||||
return CheckResult("PaddleOCR", "warn", f"init failed: {exc}")
|
||||
|
||||
@@ -71,7 +71,7 @@ def steps_for(target: str) -> list[SetupStep]:
|
||||
)
|
||||
return steps
|
||||
if target == "full":
|
||||
steps: list[SetupStep] = []
|
||||
steps = []
|
||||
if shutil.which("uv"):
|
||||
steps.append(
|
||||
SetupStep("Install optional ML dependencies", ("uv", "sync", "--extra", "full"))
|
||||
|
||||
Reference in New Issue
Block a user