Open xmo-odoo opened 7 months ago
The sphinx doc build is fine with the indentation, so docformatter should be happy with it.
The problem is that our docstring uses a custom field (calls
) which are not recognized by the SPHINX_REGEX
. We would have to add that bespoke field to the regex.
Seems odd to be using a regex for something that's potentially open-ended, even more so when the list isn't complete: https://github.com/PyCQA/docformatter/blob/504107bdc4618f83a3378faac610e02cd62ef5f9/src/docformatter/syntax.py#L62
but as of sphinx 3 this is already missing:
And it has yield
which does not seem to be a standard info field.
Saw this issue in PyGithub docstrings, when I fix it docformatter complains about exactly what I'm fixing:
Trying to remove the linebreak instead of indenting it also makes docformatter amgy: