-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[PT013] Rationale is unconvincing. #11247
Comments
Yeah, I'm going to remove that piece from the rationale -- it makes no difference to Ruff. I don't want to go as far as to remove or deprecate the rule, since it can be useful to enforce this convention (and I did some code search -- several large projects do enable this rule), but we should reframe the rationale. (Note that this rule isn't enabled by default in Ruff; you have to enable the |
But is it cargo cult programming, or is there an actual good reason for it nowadays? The rest of the PT-rules all look very sensible. |
Thanks for the helpful discussion, I happen to have similar question.
Not sure if we could/should set some exceptions for |
Rule PT013 seems arbitrary. The rationale states:
But the same reasoning "make it easier for linting tools to analyze the code" could be applied to any library.
What are some concrete linting tools this applies to? If it makes no difference to
ruff
, should this be enabled by default inruff
?The text was updated successfully, but these errors were encountered: