diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a31ef51..364f816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,5 @@ jobs: - name: Ruff check run: ruff check src tests - - name: Pyrefly check - run: pyrefly check src tests - - name: Tox test (py38, py313) run: uvx tox run -e py38,py313 diff --git a/pyproject.toml b/pyproject.toml index 2b18b2d..877e354 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -159,4 +159,3 @@ select = [ preset = "strict" project-includes = ["**/*.ipynb", "**/*.py*"] python-version = "3.8" -unused-ignore = false diff --git a/src/pyflowx/cli/pdftool.py b/src/pyflowx/cli/pdftool.py index b950f51..52476f1 100644 --- a/src/pyflowx/cli/pdftool.py +++ b/src/pyflowx/cli/pdftool.py @@ -286,7 +286,6 @@ def pdf_ocr(input_path: Path, output_path: Path, lang: str = "chi_sim+eng") -> N new_page = new_doc.new_page(width=page.rect.width, height=page.rect.height) new_page.insert_image(new_page.rect, pixmap=pix) text_rect = fitz.Rect(0, 0, page.rect.width, page.rect.height) - # pyrefly: ignore [bad-argument-type] new_page.insert_textbox(text_rect, ocr_text) output_path.parent.mkdir(parents=True, exist_ok=True)