Skip to content

GH-137623: Begin enforcing docstring length in Argument Clinic - #137624

Merged
AA-Turner merged 9 commits into
python:mainfrom
AA-Turner:clinic/overlong-docstrings
Aug 12, 2025
Merged

GH-137623: Begin enforcing docstring length in Argument Clinic#137624
AA-Turner merged 9 commits into
python:mainfrom
AA-Turner:clinic/overlong-docstrings

Conversation

@AA-Turner

@AA-TurnerAA-Turner commented Aug 11, 2025

Copy link
Copy Markdown
Member

@serhiy-storchakaserhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that we should check the length for all lines, not only the first one. And the limit should be 72 for functions, __new__ and __init__, and 68 for other methods.

Also, should this be an error or warning?

Comment threadTools/clinic/libclinic/errors.py Outdated
Comment threadTools/clinic/libclinic/dsl_parser.py Outdated
Comment threadTools/clinic/libclinic/_overlong_docstrings.py
Comment threadTools/clinic/libclinic/errors.py Outdated
@AA-Turner
AA-Turner enabled auto-merge (squash) August 12, 2025 19:05
Comment threadTools/clinic/libclinic/function.py Outdated
@AA-Turner
AA-Turner disabled auto-merge August 12, 2025 19:38
@AA-Turner
AA-Turner enabled auto-merge (squash) August 12, 2025 19:52

@serhiy-storchakaserhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. 👍

@AA-Turner
AA-Turner merged commit 6baf552 into python:mainAug 12, 2025
54 checks passed
@AA-Turner
AA-Turner deleted the clinic/overlong-docstrings branch August 12, 2025 20:21
skirpichev added a commit to skirpichev/cpython that referenced this pull request Aug 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@AA-Turner@serhiy-storchaka