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 includes several changes to improve data handling and consistency in the
superBOMproject. The most important changes include updating the project version, modifying return types and data structures for better performance, and updating corresponding unit tests to reflect these changes.Project version update:
pyproject.toml: Updated the project version from0.2.0to0.2.1.Data structure improvements:
src/superbom/main.py: Changed the return type ofprocess_itemsfromListtosetand simplified the method by removing unnecessary checks. [1] [2]src/superbom/utils/packageindexes/conda/condadependencies.py: Changedretrieve_conda_package_infoto use a dictionary instead of a list for storing package data. [1] [2]src/superbom/utils/packageindexes/pypi/pipdependencies.py: Changedget_pip_package_datato use a dictionary instead of a list for storing package data. [1] [2] [3]Unit test updates:
tests/unit_tests/test_condadeps.py: Updated tests to reflect the change from list to dictionary inretrieve_conda_package_info. [1] [2] [3]tests/unit_tests/test_pipdeps.py: Updated tests to reflect the change from list to dictionary inget_pip_package_data. [1] [2] [3]