Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert format-patches to plugins #94

Merged
merged 3 commits into from
Mar 10, 2025
Merged

Conversation

vmezzela
Copy link
Collaborator

Hi, nothing special here. Just continuing the work of converting commands to the new plugin system.

I noticed that this command takes the argument lp_filter, but never uses it. Should we just drop the option here?

While on it, do you have any other suggestion to improve this plugin?

@vmezzela vmezzela requested review from marcosps and fgyanz February 27, 2025 10:50
@marcosps
Copy link
Collaborator

I noticed that this command takes the argument lp_filter, but never uses it. Should we just drop the option here?
I think so, yes.

@vmezzela vmezzela force-pushed the format-patches-next branch from b147a19 to b9145f8 Compare February 27, 2025 11:03
@vmezzela
Copy link
Collaborator Author

I noticed that this command takes the argument lp_filter, but never uses it. Should we just drop the option here?

I think so, yes.

Done ✔️

@vmezzela vmezzela force-pushed the format-patches-next branch 2 times, most recently from a6e1bc3 to 09dc31f Compare February 27, 2025 14:15
When implementing a new command, we might want to have "-" in the name,
see for instance the "format-patches" command. Unfortunately, we cannot
have the "-" in a python file name. Hence we need to replace the symbol
in the plugin loading machinery with "_" and then be consistent with the
plugin file naming: "format-patches" command will have its own plugin
named "format_patches.py" in the plugins package.

Signed-off-by: Vincenzo MEZZELA <[email protected]>
@vmezzela vmezzela force-pushed the format-patches-next branch from 09dc31f to 47101d8 Compare February 27, 2025 15:19
Copy link
Collaborator

@marcosps marcosps left a comment

Choose a reason for hiding this comment

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

It works as expected. LGTM, thanks!

@vmezzela vmezzela marked this pull request as ready for review February 28, 2025 14:40
Copy link
Collaborator

@fgyanz fgyanz left a comment

Choose a reason for hiding this comment

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

Tested and works! Thanks a lot :)
PS: Not something to improve on this PR, but perhaps having a template for the cover-letter would save some time.

@fgyanz fgyanz merged commit 9ff646e into SUSE:devel Mar 10, 2025
1 check passed
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.

3 participants