Skip to content

Integrate Context-Aware Chunking and PDF Support #814

Integrate Context-Aware Chunking and PDF Support

Integrate Context-Aware Chunking and PDF Support #814

Triggered via pull request October 24, 2024 13:20
Status Failure
Total duration 1m 18s
Artifacts

lint.yml

on: pull_request
Matrix: lint
lint-workflow-complete
0s
lint-workflow-complete
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 10 warnings
ruff
Process completed with exit code 3.
mypy
Process completed with exit code 1.
pylint: src/instructlab/sdg/utils/taxonomy.py#L15
E0401: Unable to import 'docling_parse.docling_parse' (import-error)
pylint: src/instructlab/sdg/utils/taxonomy.py#L280
E0606: Possibly using variable 'document_contents' before assignment (possibly-used-before-assignment)
pylint: src/instructlab/sdg/utils/taxonomy.py#L281
E0606: Possibly using variable 'doc_filepaths' before assignment (possibly-used-before-assignment)
pylint: src/instructlab/sdg/utils/chunkers.py#L13
E0401: Unable to import 'docling.datamodel.base_models' (import-error)
pylint: src/instructlab/sdg/utils/chunkers.py#L14
E0401: Unable to import 'docling.datamodel.document' (import-error)
pylint: src/instructlab/sdg/utils/chunkers.py#L15
E0401: Unable to import 'docling.document_converter' (import-error)
pylint: src/instructlab/sdg/utils/chunkers.py#L33
E0211: Method 'chunk_documents' has no argument (no-method-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L152
E1121: Too many positional arguments for method call (too-many-function-args)
pylint: src/instructlab/sdg/utils/chunkers.py#L177
E0213: Method '_num_chars_from_tokens' should have "self" as first argument (no-self-argument)
pylint
Process completed with exit code 30.
pylint: src/instructlab/sdg/generate_data.py#L376
C0303: Trailing whitespace (trailing-whitespace)
pylint: src/instructlab/sdg/generate_data.py#L16
W0611: Unused Dataset imported from datasets (unused-import)
pylint: src/instructlab/sdg/utils/taxonomy.py#L476
C0304: Final newline missing (missing-final-newline)
pylint: src/instructlab/sdg/utils/taxonomy.py#L223
W0718: Catching too general exception Exception (broad-exception-caught)
pylint: src/instructlab/sdg/utils/taxonomy.py#L207
W0718: Catching too general exception Exception (broad-exception-caught)
pylint: src/instructlab/sdg/utils/taxonomy.py#L139
R1702: Too many nested blocks (10/5) (too-many-nested-blocks)
pylint: src/instructlab/sdg/utils/taxonomy.py#L139
R1702: Too many nested blocks (7/5) (too-many-nested-blocks)
pylint: src/instructlab/sdg/utils/taxonomy.py#L246
W0621: Redefining name 'parser' from outer scope (line 30) (redefined-outer-name)
pylint: src/instructlab/sdg/utils/taxonomy.py#L264
W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
pylint: src/instructlab/sdg/utils/taxonomy.py#L458
R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)