-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Made list of property-like decorators configurable. #942
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
Conversation
This makes it possible to configure pylint to accept custom decorators similar to @Property without the need to explicitly add a pylint directive #pylint disable=invalid-name
pylint/checkers/base.py
Outdated
| :param config: Configuration from which to pull additional property classes. | ||
| :returns: One of ('function', 'method', 'attr') | ||
| """ | ||
| property_classes = set((BUILTIN_PROPERTY,)) |
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.
Can you move this small block into a private function, which returns a tuple of property classes and names?
|
Thanks for the feedback ! I think I addressed your comments. |
|
Gets a 👍 from me! |
|
Hey @yannack Mind adding yourself to CONTRIBUTORS, as well adding a new entry in the Changelog with this new option? After that, we could merge this. |
|
Hi, |
|
All good, thanks! |
Made list of property-like decorators configurable. This makes it possible to configure pylint to accept custom decorators similar to @Property without the need to explicitly add a pylint directive #pylint disable=invalid-name
Fixes / new features
This makes it possible to configure pylint to accept custom decorators
similar to @Property without the need to explicitly add a pylint
directive #pylint disable=invalid-name