-
-
Notifications
You must be signed in to change notification settings - Fork 467
Description
Is your feature request related to a problem?
the oca-gen-addon-readme
command (and of course its pre-commit hook) exits without error code if DESCRIPTION.rst
is not present. I think this can lead to undesirable outcomes, like here in this module: OCA/sale-workflow#2771
where the description.rst
was not present, the original committer added an empty README file to make the hooks happy and it was never updated even though there were other readme fragments in the folder.
Relevant method:
https://github.com/OCA/maintainer-tools/blob/master/tools/gen_addon_readme.py#L509-L526
Describe the solution you'd like
I think the pre-commit hook should fail with an error if no description.rst
file exists. Maybe a command option that's then activated in OCA repos?
cc: @francesco-ooops