You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we do decide to pick one convention to stick with, whatever convention is chosen, the tool ruff (which can be used as a formatter and/or a linter) can be configured to lint the code and check docstrings and ensure the chosen convention is adhered to.
The way ruff can be used is that it has reimplemented various python code quality checks (see the full list in: https://github.com/astral-sh/ruff?tab=readme-ov-file#rules), one of which is flake8-docstrings, which can be used to check that python docstrings adhere to a particular docstring convention.
Thus, ruff can be used to lint the code (in PR's for example) and check if the docstrings in the code adhere to the chosen docstring convention.
Some docstrings use the google convention:
httomo/httomo/methods.py
Lines 20 to 30 in 8a55c4d
whereas other docstrings use the numpy convention:
httomo/httomo/method_wrappers/__init__.py
Lines 20 to 58 in 8a55c4d
Picking one convention and sticking with it feels better than having docstrings of various appearances in the source code.
The text was updated successfully, but these errors were encountered: