PandemiaProject / pandemia

An individual-based pandemic simulator
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

Additional customisation / refinments of sphinx docs #74

Open andrewphilipsmith opened 1 year ago

andrewphilipsmith commented 1 year ago

Some additional ideas

andrewphilipsmith commented 1 year ago

Some of the items above are fixed in https://github.com/PandemiaProject/pandemia/pull/75

James-Thompson-724 commented 1 year ago

The docstrings I've already written are in the NumPy style, so best stick with that, I think

James-Thompson-724 commented 1 year ago

See: https://stackoverflow.com/questions/23504296/cant-make-a-bullet-list-in-restructuredtext-sphinx-readthedocs-in-the-format/23516012#23516012 for bullet list issue

andrewphilipsmith commented 1 year ago

For testing/linting DocStrings, try pydocstyle.

It is possible to filter by error type, which might be a helpful way to incrementally add priority docstrings, without needing to fix everything in one go.

It is also possible to configure pre-commit to work with pydocstyle. Search for "pydocstring" on the list of hooks. I would highly recommend doing this.