Skip to content

Conversation

@yannack
Copy link
Contributor

@yannack yannack commented Jun 17, 2016

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

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
:param config: Configuration from which to pull additional property classes.
:returns: One of ('function', 'method', 'attr')
"""
property_classes = set((BUILTIN_PROPERTY,))
Copy link
Contributor

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?

@yannack
Copy link
Contributor Author

yannack commented Jun 17, 2016

Thanks for the feedback ! I think I addressed your comments.

@coveralls
Copy link

coveralls commented Jun 17, 2016

Coverage Status

Coverage increased (+0.01%) to 88.643% when pulling 209bb25 on yannack:master into 554c8c7 on PyCQA:master.

@AWhetter
Copy link
Contributor

Gets a 👍 from me!

@PCManticore
Copy link
Contributor

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.

@yannack
Copy link
Contributor Author

yannack commented Jun 20, 2016

Hi,
Sorry I missed that. It is fixed now, let me know if I can do anything else :)
Thanks

@coveralls
Copy link

coveralls commented Jun 20, 2016

Coverage Status

Coverage increased (+0.01%) to 88.643% when pulling 82fe0fb on yannack:master into 554c8c7 on PyCQA:master.

@PCManticore
Copy link
Contributor

All good, thanks!

@PCManticore PCManticore merged commit 77bec54 into pylint-dev:master Jun 20, 2016
PCManticore pushed a commit that referenced this pull request Jul 2, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants