Skip to content

Integrate Context-Aware Chunking and PDF Support #736

Integrate Context-Aware Chunking and PDF Support

Integrate Context-Aware Chunking and PDF Support #736

Triggered via pull request October 2, 2024 19:27
Status Failure
Total duration 1m 12s
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/chunkers.py#L10
E0401: Unable to import 'docling.datamodel.base_models' (import-error)
pylint: src/instructlab/sdg/utils/chunkers.py#L11
E0401: Unable to import 'docling.datamodel.document' (import-error)
pylint: src/instructlab/sdg/utils/chunkers.py#L12
E0401: Unable to import 'docling.document_converter' (import-error)
pylint: src/instructlab/sdg/utils/chunkers.py#L29
E0211: Method 'chunk_documents' has no argument (no-method-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L41
E1120: No value for argument 'filepaths' in staticmethod call (no-value-for-parameter)
pylint: src/instructlab/sdg/utils/chunkers.py#L47
E0602: Undefined variable 'server_ctx_size' (undefined-variable)
pylint: src/instructlab/sdg/utils/chunkers.py#L48
E0602: Undefined variable 'chunk_word_count' (undefined-variable)
pylint: src/instructlab/sdg/utils/chunkers.py#L49
E0602: Undefined variable 'output_dir' (undefined-variable)
pylint: src/instructlab/sdg/utils/chunkers.py#L52
E1121: Too many positional arguments for constructor call (too-many-function-args)
pylint: src/instructlab/sdg/utils/chunkers.py#L53
E0602: Undefined variable 'self' (undefined-variable)
pylint: src/instructlab/sdg/utils/chunkers.py#L58
C0303: Trailing whitespace (trailing-whitespace)
pylint: src/instructlab/sdg/utils/chunkers.py#L483
C0304: Final newline missing (missing-final-newline)
pylint: src/instructlab/sdg/utils/chunkers.py#L37
C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
pylint: src/instructlab/sdg/utils/chunkers.py#L43
W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
pylint: src/instructlab/sdg/utils/chunkers.py#L62
W0211: Static method with 'self' as first argument (bad-staticmethod-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L62
W0613: Unused argument 'self' (unused-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L103
W0613: Unused argument 'documents' (unused-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L103
W0613: Unused argument 'filepaths' (unused-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L103
W0613: Unused argument 'leaf_node_path' (unused-argument)
pylint: src/instructlab/sdg/utils/chunkers.py#L276
W0612: Unused variable 'i' (unused-variable)