From 8cfce138e9519f63e969e89359e86e140b2f0f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Mon, 25 Oct 2021 09:27:47 +0200 Subject: Add ``mixin-class-rgx`` option (#5203) Co-authored-by: Alpha Co-authored-by: Pierre Sassoulas --- pylintrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pylintrc') diff --git a/pylintrc b/pylintrc index b4a4e9fac..e5cbc1220 100644 --- a/pylintrc +++ b/pylintrc @@ -270,10 +270,13 @@ property-classes=abc.abstractproperty [TYPECHECK] -# Tells whether missing members accessed in mixin class should be ignored. A -# mixin class is detected if its name ends with "mixin" (case insensitive). +# Tells whether missing members accessed in mixin class should be ignored. +# A class is considered mixin if its name matches the mixin-class-rgx option. ignore-mixin-members=yes +# Regex pattern to define which classes are considered mixins. +mixin-class-rgx=.*MixIn + # List of module names for which member attributes should not be checked # (useful for modules/projects where namespaces are manipulated during runtime # and thus existing member attributes cannot be deduced by static analysis) -- cgit v1.2.1