-
Notifications
You must be signed in to change notification settings - Fork 11
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
add doc8 pre-commits #125
add doc8 pre-commits #125
Conversation
A PR has been generated to the instance repo: You can check out the PR to preview your changes |
@giovp we're mostly using markdown right? Why do we need doc8? For the eval_rst sections? Not for the translated stuff right? |
yeah but most importantly for docstrings |
If it's about docstrings, does it detect which docstring style is used? If not, do we need to configure this? |
I don't think so, I believe it's basic styles |
Why do we even need this?
I think most of this is autofixed by prettier. |
I don't remember what but I literally had a docstrings which was fixed by pre-commit on a generated repo with this template. I don't think prettier checks rst directive, it's more about formatting. |
So it's only about
So if we add this, I would make it ignore all other codes to avoid potential conflicts with prettier or other checks. By default it also only checks |
mmh I think all of them. Like training whitespaces is also in docstrings. Myst is for docs but docstrings would still be in rst right? |
no chance this is getting through? can also close, not super strong feelings, think useful but ok to close and delete. |
e.g. #154 from @adamgayoso broke doc8
fix is very straightforward, just need to add some blank lines here and there, see https://github.com/scverse/spatialdata/blob/main/docs/_templates/autosummary/class.rst also understands that it is not actually useful in any way. Am actually gonna close this for now. |
suggest to add doc8 as pre-commit check.
close #126