Add related plugins support to PluginDescription and Plugin#40
Merged
louiswesterheide merged 4 commits intomainfrom Apr 17, 2026
Merged
Add related plugins support to PluginDescription and Plugin#40louiswesterheide merged 4 commits intomainfrom
louiswesterheide merged 4 commits intomainfrom
Conversation
added 4 commits
April 15, 2026 09:53
Adds a PluginReference class to hold a plugin identifier and an optional description of the relationship. Extends PluginDescription and the Plugin decorator with a related_plugins parameter.
…on.init. Bumps trivy-py-ecc from 0.68.2.1 to 0.69.3.1. Adds PLR0912 to the existing noqa suppression on PluginDescription.init, which now exceeds the branch limit after the related_plugins addition.
Replaces four if/else blocks with ternary expressions, removing the need for the PLR0912 branch-count suppression.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related plugins support
Introduces
PluginReference— a small class carrying aplugin_idand an optionaldescriptionof the relationship — and wires it into bothPluginDescriptionand the@Plugindecorator via a newrelated_pluginsparameter.Plugin authors can now declare related plugins directly in the annotation:
The field defaults to an empty list and is purely additive — no existing plugins are affected. DataIntegration reads it via jep and exposes it in the plugin list API as part of CMEM-7549.
Also bumps
trivy-py-eccto0.69.3.1, which was required to build on Python 3.13 — the previous version failed with a PEP 517 wheel build error.