Skip to content

Conversation

@heliocastro
Copy link
Owner

No description provided.

heliocastro and others added 4 commits December 19, 2025 13:09
Signed-off-by: Helio Chissini de Castro <[email protected]>
Signed-off-by: Helio Chissini de Castro <[email protected]>
Signed-off-by: Helio Chissini de Castro <[email protected]>
@heliocastro heliocastro self-assigned this Jan 26, 2026
Copilot AI review requested due to automatic review settings January 26, 2026 08:37
@heliocastro heliocastro changed the title feat(result): Initial OrtRsult code - Analyzer feat(result): Initial OrtResult code - Analyzer Jan 26, 2026
Signed-off-by: Helio Chissini de Castro <[email protected]>
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.

Pull request overview

This PR introduces the initial implementation of OrtResult code for the Analyzer component, representing a significant expansion of the python-ort library's data model capabilities. The PR adds comprehensive support for parsing and serializing ORT (OSS Review Toolkit) analyzer results.

Changes:

  • Adds complete analyzer result data models including OrtResult, AnalyzerRun, AnalyzerResult, Project, Package, DependencyGraph, and supporting classes
  • Introduces test data files demonstrating the expected format for analyzer results and ORT configuration
  • Updates VCS models to handle empty strings and improve serialization
  • Removes deprecated ort_configuration.py file
  • Updates dependencies and development tooling to newer versions
  • Adds example scripts for parsing ORT result and repository configuration files

Reviewed changes

Copilot reviewed 35 out of 38 changed files in this pull request and generated 17 comments.

Show a summary per file
File Description
tests/data/analyzer-result.yml Large test data file (1832 lines) demonstrating analyzer result format with package dependencies
tests/data/ort_configuration_reference.yml Reference configuration file (393 lines) showing all ORT configuration options
src/ort/utils/processed_declared_license.py New utility model for processed license declarations
src/ort/utils/environment.py New model for ORT execution environment information
src/ort/severity.py Enum for issue severity levels (HINT, WARNING, ERROR)
src/ort/models/vcstype.py Updated to serialize as plain string; added model_serializer
src/ort/models/vcsinfo.py Modified url field to accept empty strings; changed type from strict AnyUrl
src/ort/models/source_code_origin.py Added docstring documentation
src/ort/models/scope.py New model for dependency scopes
src/ort/models/root_dependency_index.py New model for root dependency indexing
src/ort/models/repository.py New model for repository information
src/ort/models/remote_artifact.py New model for remote artifact references
src/ort/models/project.py New model for project information with custom hash/equality
src/ort/models/package_reference.py New model for package references in dependency trees
src/ort/models/package_linkage.py New enum for package linkage types
src/ort/models/package.py New model for package information with custom hash/equality
src/ort/models/ort_result.py Main ORT result container model
src/ort/models/issue.py New model for ORT issues
src/ort/models/identifier.py Made frozen/immutable and added str method
src/ort/models/dependency_*.py New models for dependency graph representation (node, edge, reference, graph)
src/ort/models/config/analyzer_configuration.py Updated docstring for clarity
src/ort/models/analyzer_*.py New models for analyzer run and result
src/ort/models/ort_configuration.py Deleted entire file (breaking change)
examples/*.py New example scripts for parsing ORT data
pyproject.toml Version bump to 0.5.0, updated dependencies
.pre-commit-config.yaml Updated tool versions and hook configurations
.ort.yml New ORT configuration file for the project
.gitignore Added patterns for ORT output and requirements.txt
.vscode/settings.json Deleted file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@heliocastro heliocastro merged commit 8f0f148 into main Jan 26, 2026
16 checks passed
@heliocastro heliocastro deleted the feat/analyzer branch January 26, 2026 08:43
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.

2 participants