You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While some short names have been whitelisted in #1548, there are still cases when using short names is justified. For example, albumenatations library uses A as an alias in their examples. Or x and y are common names in machine learning. Disabling the entire WPS111 rule would be too broad, while putting noqa would pollute the code. There is an option to add allowed domain names (#1106), but this does not exclude them from the WPS111 rule.
Thesis
Make adding variable names to allowed domain names exclude them from the WPS111 rule.
Reasoning
There are still short names that are justified to be used in some domains. Like x and y in machine learning or A as an alias for the albumentations library.
The text was updated successfully, but these errors were encountered:
Rule request
While some short names have been whitelisted in #1548, there are still cases when using short names is justified. For example, albumenatations library uses
A
as an alias in their examples. Orx
andy
are common names in machine learning. Disabling the entire WPS111 rule would be too broad, while putting noqa would pollute the code. There is an option to add allowed domain names (#1106), but this does not exclude them from the WPS111 rule.Thesis
Make adding variable names to allowed domain names exclude them from the WPS111 rule.
Reasoning
There are still short names that are justified to be used in some domains. Like
x
andy
in machine learning orA
as an alias for the albumentations library.The text was updated successfully, but these errors were encountered: