Skip to content

[pydoclint] Add docstring-missing-returns amd docstring-extraneous-returns (DOC201, DOC202)#12485

Merged
MichaReiser merged 13 commits intoastral-sh:mainfrom
augustelalande:doc2xx
Jul 26, 2024
Merged

[pydoclint] Add docstring-missing-returns amd docstring-extraneous-returns (DOC201, DOC202)#12485
MichaReiser merged 13 commits intoastral-sh:mainfrom
augustelalande:doc2xx

Conversation

@augustelalande
Copy link
Copy Markdown
Contributor

@augustelalande augustelalande commented Jul 24, 2024

Summary

Add docstring-missing-returns amd docstring-extraneous-returns (DOC201, DOC202). These rules check that the returns defined (or not) in the docstring of a function match its implementation.

Part of #12434.

Test Plan

Test cases added.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jul 24, 2024

CodSpeed Performance Report

Merging #12485 will not alter performance

Comparing augustelalande:doc2xx (456db23) with augustelalande:doc2xx (16e30f2)

Summary

✅ 33 untouched benchmarks

@MichaReiser MichaReiser added rule Implementing or modifying a lint rule docstring Related to docstring linting or formatting preview Related to preview mode features labels Jul 24, 2024
Copy link
Copy Markdown
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This overall looks good to me. I think there's a pre-existing issue around nested functions. I'm okay with merging the PR as is and doing a follow up pr to fix it or fix it in this pr.

@augustelalande
Copy link
Copy Markdown
Contributor Author

All done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docstring Related to docstring linting or formatting preview Related to preview mode features rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants