-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
GH-137623: Use an AC decorator for docstring line length enforcement #137690
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
GH-137623: Use an AC decorator for docstring line length enforcement #137690
Conversation
fbb070c
to
37dbdf7
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I'd prefer to merge this, I think it's a cleaner solution than the current. @serhiy-storchaka do you have any objections? A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ДПЕЬю Ж+1Ж
LGTM. 👍 |
Google translate doesn't have any suggestions here! |
Thank you! |
Oh, I would have suggested |
Sorry, I wanted to minimise review spam so kept it in draft. Happy to change it if you'd like? My rationale for "permit" instead of "allow" was to signal that this is an exception to the rule -- we don't want to see the number of exceptions go up here. "allow" could be seen as a supported way to bypass the checks, which we'd prefer to avoid. I realise that this is a very slight semantic difference, though! |
Oh, if that's your rationale, I'm ok with it though in this case I would have had some "ignore_maxline_length" instead or "disable_docstring_length_check" but I'm fine the |
ДПЕЬ is LGTM in Russian (or Ukrainian, I think that part of keyboard has no difference). Shame on Google! |
After thinking about it, @serhiy-storchaka's suggestion to use a decorator seems a better approach. It keeps the information localised to where the problem is, rather than hiding it in
libclinic
, which most contributors shouldn't need to worry about.Opening as draft to avoid review-request spam until ready for merge.
A