Chore/20250711/simplify #19
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant enhancements to the
Pipelineclass inefemel/pipeline.py, focusing on improving chunked processing, adding type-safe overloads for flattening operations, and ensuring chunk size consistency throughout transformations. Additionally, it refactors import statements across multiple files for better readability and adds new configuration settings for theisorttool inpyproject.toml.Enhancements to
Pipelinefunctionality:chunk_sizeas a class attribute to ensure transformations likefilter,map,tap_chunk,flatten, andchainpreserve the original chunk size. ([[1]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-41232c54a631af00f8efcf69ef8dd52bad12518bf2f443aaf36b3888182d22dcR58-R59),[[2]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-41232c54a631af00f8efcf69ef8dd52bad12518bf2f443aaf36b3888182d22dcL65-R77),[[3]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-41232c54a631af00f8efcf69ef8dd52bad12518bf2f443aaf36b3888182d22dcL114-R131),[[4]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-41232c54a631af00f8efcf69ef8dd52bad12518bf2f443aaf36b3888182d22dcL259-R297),[[5]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-41232c54a631af00f8efcf69ef8dd52bad12518bf2f443aaf36b3888182d22dcL277-R317))flattento handle specific iterable types (list,tuple,set) while maintaining chunked structure for memory efficiency. ([efemel/pipeline.pyL165-R209](https://github.com/ringoldsdev/efemel/pull/19/files#diff-41232c54a631af00f8efcf69ef8dd52bad12518bf2f443aaf36b3888182d22dcL165-R209))[[1]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-ef5f0938c9abd7d9ab658f28e363b093e59f677949829145bc7d6036cec3897fL405-L411),[[2]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-ef5f0938c9abd7d9ab658f28e363b093e59f677949829145bc7d6036cec3897fR419-R484))Refactoring and code cleanup:
efemel/cli.py,efemel/hooks_manager.py,efemel/process.py,efemel/readers/local.py,tests/test_cli.py) to enforce single-line imports and improve readability. ([[1]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-de0f2600e6a42ac7b348702e57bd981acb52d415245acea28131a08442e9d630R1-R5),[[2]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-31229c3b91b36bd395e96008601cbb24d075bf369ba4f374903be5a092e73291R2-L5),[[3]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-f52c1cb1f15beaae0102d3ac011e78e66c2ed586365a8fb6365b81807ce45030L1-R4),[[4]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-e795bca0bfc4ad93aa4345e6f014e2473469750c1f73785932c2bed526910d69L1-R2),[[5]](https://github.com/ringoldsdev/efemel/pull/19/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032eL2-R6))Configuration updates:
isortsettings: Added configuration inpyproject.tomlto enforce single-line imports, order by type, and improve sorting rules for imports. ([pyproject.tomlR55-R63](https://github.com/ringoldsdev/efemel/pull/19/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R55-R63))