summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-10-25 09:27:47 +0200
committerGitHub <noreply@github.com>2021-10-25 09:27:47 +0200
commit8cfce138e9519f63e969e89359e86e140b2f0f13 (patch)
treeeff12c3d285d53b7a6e4cf387f265ca029c72b51 /pylintrc
parented3449fee063d91f050c6b733030d3b3d7ad719f (diff)
downloadpylint-git-8cfce138e9519f63e969e89359e86e140b2f0f13.tar.gz
Add ``mixin-class-rgx`` option (#5203)
Co-authored-by: Alpha <alpha@pokesplash.net> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc7
1 files changed, 5 insertions, 2 deletions
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)