Skip to content

Conversation

@michaelbeale-IL
Copy link
Contributor

No description provided.

- Added logging for empty DataFrames in save_results function.
- Introduced process_items function for streamlined item processing.
- Improved error handling and logging in Conda and PyPI package utilities.
- Updated parsing functions to handle additional file formats and dependencies.
- Refactored tests to align with new method signatures and improved functionality.
@michaelbeale-IL michaelbeale-IL requested a review from Copilot April 7, 2025 20:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 14 out of 16 changed files in this pull request and generated 4 comments.

Files not reviewed (2)
  • .vscode/settings.json: Language not supported
  • pytest.ini: Language not supported

@michaelbeale-IL michaelbeale-IL requested a review from Copilot April 7, 2025 23:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 15 out of 17 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • .vscode/settings.json: Language not supported
  • pytest.ini: Language not supported
Comments suppressed due to low confidence (2)

src/superbom/utils/packageindexes/pypi/pipdependencies.py:33

  • The updated method now processes only a single package instead of iterating over a list. Ensure that this change is intentional and that all corresponding references in the codebase have been updated accordingly.
return package_data

src/superbom/main.py:87

  • The 'logger' variable used in the tqdm call is not defined in the scope of process_items. Ensure that a logger instance is properly initialized or passed in to avoid a NameError.
items, desc="Processing items", unit="item", disable=logger.level > logging.INFO

return None, None

def retrieve_conda_package_info(self, deps) -> list:
def retrieve_conda_package_info(self, package) -> dict:
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type annotation is marked as 'dict' but the method actually returns a list. Update the type annotation to reflect that a list is returned.

Suggested change
def retrieve_conda_package_info(self, package) -> dict:
def retrieve_conda_package_info(self, package) -> list:

Copilot uses AI. Check for mistakes.
@michaelbeale-IL michaelbeale-IL merged commit 851b98d into main Apr 7, 2025
1 check passed
@michaelbeale-IL michaelbeale-IL deleted the the-yaml-update branch April 7, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant