Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 13 commits into from
Jul 26, 2024

Conversation

augustelalande
Copy link
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.

Copy link

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
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
Contributor Author

All done

@MichaReiser MichaReiser enabled auto-merge (squash) July 26, 2024 06:32
@MichaReiser MichaReiser merged commit 9f72f47 into astral-sh:main Jul 26, 2024
19 checks passed
@augustelalande augustelalande deleted the doc2xx branch July 26, 2024 15:04
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