Skip to content

Fix ocr import

Fix ocr import #1014

Triggered via push October 13, 2023 13:37
Status Failure
Total duration 1m 55s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 errors
Ruff (I001): src/sec_certs/utils/ocr.py#L1
src/sec_certs/utils/ocr.py:1:1: I001 Import block is un-sorted or un-formatted
Ruff (F811): src/sec_certs/utils/ocr.py#L5
src/sec_certs/utils/ocr.py:5:8: F811 Redefinition of unused `os` from line 1
Ruff (C901): src/sec_certs/utils/ocr.py#L106
src/sec_certs/utils/ocr.py:106:5: C901 `ocr_segments_with_garbage_text` is too complex (13)
Ruff (F821): src/sec_certs/utils/ocr.py#L160
src/sec_certs/utils/ocr.py:160:35: F821 Undefined name `glob`
Ruff (W292): src/sec_certs/utils/ocr.py#L176
src/sec_certs/utils/ocr.py:176:20: W292 No newline at end of file
Ruff (I001): src/sec_certs/utils/pdf.py#L1
src/sec_certs/utils/pdf.py:1:1: I001 Import block is un-sorted or un-formatted
Ruff (F401): src/sec_certs/utils/pdf.py#L3
src/sec_certs/utils/pdf.py:3:8: F401 `glob` imported but unused
Ruff (F401): src/sec_certs/utils/pdf.py#L5
src/sec_certs/utils/pdf.py:5:8: F401 `subprocess` imported but unused
Ruff (F811): src/sec_certs/utils/pdf.py#L10
src/sec_certs/utils/pdf.py:10:37: F811 Redefinition of unused `Any` from line 10
Ruff (F811): src/sec_certs/utils/pdf.py#L15
src/sec_certs/utils/pdf.py:15:21: F811 Redefinition of unused `Path` from line 8
black
Process completed with exit code 1.
mypy
Process completed with exit code 1.