lightly-ai / lightly

A python library for self-supervised learning on images.
https://docs.lightly.ai/self-supervised-learning/
MIT License
3.12k stars 272 forks source link

Figure out if we can use tool to verify docstring format #1217

Open guarin opened 1 year ago

guarin commented 1 year ago

Requirements

Tasks

ishaanagw commented 1 week ago

Hey @guarin, do you think we can use this - https://pypi.org/project/pydocstringformatter/#what-it-does

guarin commented 1 week ago

Hi, this looks interesting! There also seem to be a bunch of alternatives:

Maybe there are also others. My favorite would be ruff because we anyways want to switch to it (https://github.com/lightly-ai/lightly/issues/1564) as it is very fast and we made good experiences with it. Having a single linter would be perfect. That said, I haven't tried it for linting docstrings and am not sure how well it works on our codebase. Would be interesting to try it out.