Skip to content

implemented text recognition (ocr) #664

implemented text recognition (ocr)

implemented text recognition (ocr) #664

Triggered via pull request February 3, 2024 17:51
Status Failure
Total duration 5m 7s
Artifacts 6

lint-and-build.yml

on: pull_request
Matrix: Build
Matrix: Pyright
Matrix: ruff
Fit to window
Zoom out
Zoom in

Annotations

55 errors and 16 warnings
ruff (ubuntu-22.04, 3.10)
Process completed with exit code 1.
Pyright (ubuntu-22.04, 3.10): src/AutoSplitImage.py#L8
Import "tomllib" could not be resolved (reportMissingImports)
Pyright (ubuntu-22.04, 3.10): src/AutoSplitImage.py#L122
Type of "data" is unknown (reportUnknownVariableType)
Pyright (ubuntu-22.04, 3.10): src/AutoSplitImage.py#L122
Type of "load" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.10): src/AutoSplitImage.py#L179
Object of type "None" is not subscriptable (reportOptionalSubscript)
Pyright (ubuntu-22.04, 3.10): src/AutoSplitImage.py#L179
Argument type is partially unknown   Argument corresponds to parameter "capture" in function "extract_and_compare_text"   Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
Pyright (ubuntu-22.04, 3.10): src/compare.py#L150
Argument type is unknown   Argument corresponds to parameter "__value" in function "__setitem__" (reportUnknownArgumentType)
Pyright (ubuntu-22.04, 3.10): src/compare.py#L150
Type of "STARTUPINFO" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.10): src/compare.py#L150
"STARTUPINFO" is not a known member of module "subprocess" (reportAttributeAccessIssue)
Pyright (ubuntu-22.04, 3.10): src/compare.py#L151
Type of "dwFlags" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.10): src/compare.py#L151
Type of "STARTF_USESHOWWINDOW" is unknown (reportUnknownMemberType)
ruff (ubuntu-22.04, 3.11)
Process completed with exit code 1.
Pyright (ubuntu-22.04, 3.11): src/AutoSplitImage.py#L179
Object of type "None" is not subscriptable (reportOptionalSubscript)
Pyright (ubuntu-22.04, 3.11): src/AutoSplitImage.py#L179
Argument type is partially unknown   Argument corresponds to parameter "capture" in function "extract_and_compare_text"   Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L150
Argument type is unknown   Argument corresponds to parameter "__value" in function "__setitem__" (reportUnknownArgumentType)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L150
Type of "STARTUPINFO" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L150
"STARTUPINFO" is not a known member of module "subprocess" (reportAttributeAccessIssue)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L151
Type of "dwFlags" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L151
Type of "STARTF_USESHOWWINDOW" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L151
"STARTF_USESHOWWINDOW" is not a known member of module "subprocess" (reportAttributeAccessIssue)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L152
Type of "SW_HIDE" is unknown (reportUnknownMemberType)
Pyright (ubuntu-22.04, 3.11): src/compare.py#L152
"SW_HIDE" is not a known member of module "subprocess" (reportAttributeAccessIssue)
Pyright (windows-latest, 3.10): src/AutoSplitImage.py#L8
Import "tomllib" could not be resolved (reportMissingImports)
Pyright (windows-latest, 3.10): src/AutoSplitImage.py#L122
Type of "data" is unknown (reportUnknownVariableType)
Pyright (windows-latest, 3.10): src/AutoSplitImage.py#L122
Type of "load" is unknown (reportUnknownMemberType)
Pyright (windows-latest, 3.10): src/AutoSplitImage.py#L179
Object of type "None" is not subscriptable (reportOptionalSubscript)
Pyright (windows-latest, 3.10): src/AutoSplitImage.py#L179
Argument type is partially unknown   Argument corresponds to parameter "capture" in function "extract_and_compare_text"   Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
Pyright (windows-latest, 3.10): src/compare.py#L150
Argument of type "STARTUPINFO" cannot be assigned to parameter "__value" of type "int | _Environ[str] | None" in function "__setitem__"   Type "STARTUPINFO" cannot be assigned to type "int | _Environ[str] | None"     "STARTUPINFO" is incompatible with "int"     "STARTUPINFO" is incompatible with "None"     "STARTUPINFO" is incompatible with "_Environ[str]" (reportArgumentType)
Pyright (windows-latest, 3.10): src/compare.py#L159
No overloads for "__init__" match the provided arguments (reportCallIssue)
Pyright (windows-latest, 3.10): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "bufsize" of type "int" in function "__init__"   Type "int | _Environ[str] | None" cannot be assigned to type "int"     "_Environ[str]" is incompatible with "int" (reportArgumentType)
Pyright (windows-latest, 3.10): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "executable" of type "StrOrBytesPath | None" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.10): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stdin" of type "_FILE" in function "__init__" (reportArgumentType)
ruff (windows-latest, 3.12)
Process completed with exit code 1.
ruff (windows-latest, 3.10)
Process completed with exit code 1.
Pyright (windows-latest, 3.12): src/AutoSplitImage.py#L179
Object of type "None" is not subscriptable (reportOptionalSubscript)
Pyright (windows-latest, 3.12): src/AutoSplitImage.py#L179
Argument type is partially unknown   Argument corresponds to parameter "capture" in function "extract_and_compare_text"   Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L150
Argument of type "STARTUPINFO" cannot be assigned to parameter "__value" of type "int | _Environ[str] | None" in function "__setitem__"   Type "STARTUPINFO" cannot be assigned to type "int | _Environ[str] | None"     "STARTUPINFO" is incompatible with "int"     "STARTUPINFO" is incompatible with "None"     "STARTUPINFO" is incompatible with "_Environ[str]" (reportArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L159
No overloads for "__init__" match the provided arguments (reportCallIssue)
Pyright (windows-latest, 3.12): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "bufsize" of type "int" in function "__init__"   Type "int | _Environ[str] | None" cannot be assigned to type "int"     "_Environ[str]" is incompatible with "int" (reportArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "executable" of type "StrOrBytesPath | None" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stdin" of type "_FILE" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stdout" of type "_FILE" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stderr" of type "_FILE" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.12): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "preexec_fn" of type "(() -> Any) | None" in function "__init__" (reportArgumentType)
ruff (windows-latest, 3.11)
Process completed with exit code 1.
Pyright (windows-latest, 3.11): src/AutoSplitImage.py#L179
Object of type "None" is not subscriptable (reportOptionalSubscript)
Pyright (windows-latest, 3.11): src/AutoSplitImage.py#L179
Argument type is partially unknown   Argument corresponds to parameter "capture" in function "extract_and_compare_text"   Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L150
Argument of type "STARTUPINFO" cannot be assigned to parameter "__value" of type "int | _Environ[str] | None" in function "__setitem__"   Type "STARTUPINFO" cannot be assigned to type "int | _Environ[str] | None"     "STARTUPINFO" is incompatible with "int"     "STARTUPINFO" is incompatible with "None"     "STARTUPINFO" is incompatible with "_Environ[str]" (reportArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L159
No overloads for "__init__" match the provided arguments (reportCallIssue)
Pyright (windows-latest, 3.11): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "bufsize" of type "int" in function "__init__"   Type "int | _Environ[str] | None" cannot be assigned to type "int"     "_Environ[str]" is incompatible with "int" (reportArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "executable" of type "StrOrBytesPath | None" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stdin" of type "_FILE" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stdout" of type "_FILE" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "stderr" of type "_FILE" in function "__init__" (reportArgumentType)
Pyright (windows-latest, 3.11): src/compare.py#L159
Argument of type "int | _Environ[str] | None" cannot be assigned to parameter "preexec_fn" of type "(() -> Any) | None" in function "__init__" (reportArgumentType)
ruff (ubuntu-22.04, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (ubuntu-22.04, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ruff (ubuntu-22.04, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (ubuntu-22.04, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (ubuntu-22.04, 3.11): src/AutoSplitImage.py#L8
Stub file not found for "tomllib" (reportMissingTypeStubs)
Pyright (windows-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ruff (windows-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ruff (windows-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (windows-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (windows-latest, 3.12): src/AutoSplitImage.py#L8
Stub file not found for "tomllib" (reportMissingTypeStubs)
ruff (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Pyright (windows-latest, 3.11): src/AutoSplitImage.py#L8
Stub file not found for "tomllib" (reportMissingTypeStubs)
Build (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build (windows-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build (ubuntu-22.04, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
AutoSplit for ubuntu-22.04 (Python 3.11) Expired
166 MB
AutoSplit for windows-latest (Python 3.11) Expired
137 MB
AutoSplit for windows-latest (Python 3.12) Expired
137 MB
Build logs for ubuntu-22.04 (Python 3.11) Expired
2.15 MB
Build logs for windows-latest (Python 3.11) Expired
2.41 MB
Build logs for windows-latest (Python 3.12) Expired
2.41 MB