From f4d5bd43363354fdea7e5af38cf47cdbe324007a Mon Sep 17 00:00:00 2001 From: Michele Dolfi Date: Wed, 24 Jul 2024 12:38:09 +0200 Subject: [PATCH] fix: add easyocr to main deps for valid extra Signed-off-by: Michele Dolfi --- .pre-commit-config.yaml | 7 +++++++ poetry.lock | 6 +++--- pyproject.toml | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db2213da..5ee1599b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,10 @@ repos: # pass_filenames: false # language: system # files: '\.py$' + - repo: local + hooks: + - id: system + name: Poetry check + entry: poetry check --lock + pass_filenames: false + language: system diff --git a/poetry.lock b/poetry.lock index 992e1fd9..4ce32283 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4875,10 +4875,10 @@ doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linke test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] [extras] -easyocr = [] -ocr = [] +easyocr = ["easyocr"] +ocr = ["easyocr"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "73028669d2cdf3926d52d02543d1dcfd9987fd4eba1a0cff3c5d17717963f04d" +content-hash = "e480591202d3ed9f8be512efa02d10962a3842eedb67d06eaaeca17e08b15920" diff --git a/pyproject.toml b/pyproject.toml index c62710f8..e0e2e7b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ filetype = "^1.2.0" pypdfium2 = "^4.30.0" pydantic-settings = "^2.3.0" huggingface_hub = ">=0.23,<1" +easyocr = { version = "^1.7", optional = true } [tool.poetry.group.ocr.dependencies] easyocr = "^1.7"