Skip to content

oca-gen-addon-readme: exits with no error if description.rst is not present #590

@aleuffre

Description

@aleuffre

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions