Force writing enums.py

Description

When generating a module with an enum definition it will work the first time, but subsequent attempts will fail because enums.py already exists.

A better default would be to force overwrite this file everytime. I don't think keep_existing is the correct behaviour for this file as it contains content that we generate which wouldn't be refreshed. Following the force flag might be more consistent with the other wrapper code.

Side note: perhaps we should flag that these files are generated and will be overwritten

Checklist

Please confirm that this pull request has done the following:

  • Tests added
  • Documentation added (where applicable)
  • Changelog item added to changelog/
Edited by Jared Lewis

Merge request reports

Loading