Replies: 4 comments 11 replies
-
Hi @jsh9! Thank you for making pydoclint! I wanted to share that I wrote a blog post about switching to pydoclint from darglint: https://ericmjl.github.io/blog/2023/10/9/check-docstrings-blazing-fast-with-pydoclint/ Thanks again for your contribution to the open source community! |
Beta Was this translation helpful? Give feedback.
-
Cool tool, looks like it's time to switch! I tried it out on one of my repos, and I'm getting some errors for a valid Google style docstring (see also docstring docs on type annotations):
And even if i go - args=(),
+ args: Tuple[Any, ...] = (),
- **kwargs,
+ **kwargs: Any, I'll still get
So:
|
Beta Was this translation helpful? Give feedback.
-
TY, we're making the switch slowly... |
Beta Was this translation helpful? Give feedback.
-
Great work on this! Migration from |
Beta Was this translation helpful? Give feedback.
-
Hi @jrjsmrtn, @ddelange, @ericmjl, @thatlittleboy, @Kludex, @cidrblock, @ssbarnea, @finswimmer, @edgarrmondragon, @lsorber, @anthonyburdi,
I followed this Ruff issue (astral-sh/ruff#458) and saw that you were all using Darglint and all wanted a faster solution.
I implemented pydoclint (the repo that this post is in) a few months ago in pure Python, and it's much much faster than Darglint. In addition, it discovers a lot of docstring style violations that Darglint does not.
If you are interested, please feel free to try it out. Any feedback is welcome!
Additional notes:
I have no affiliation with Ruff's authors. I did make a suggestion to them to implement pydoclint instead of Darglint into Ruff (Implement rules in
darglint
astral-sh/ruff#458 (comment)), but they did not reply to it.pydoclint is not a drop-in replacement of Darglint: if you adopt pydoclint, you'll likely discover more style violations (they are still docstring style violations but Darglint could not detect them).
Beta Was this translation helpful? Give feedback.
All reactions