summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-10-17 10:40:51 +0200
committerGitHub <noreply@github.com>2021-10-17 10:40:51 +0200
commitd3b27d8aeeb27441405d4183feb7b18a91925093 (patch)
tree56b4e256bc0f3acb8c5a8cfeae68166dfe1d1fe2 /pylintrc
parent97048ded8e7528e927f7f7818beb3d5d79662b03 (diff)
downloadpylint-git-d3b27d8aeeb27441405d4183feb7b18a91925093.tar.gz
Fix ``missing-function-docstring`` not checking ``__init__`` (#5147)
* Fix ``missing-function-docstring`` not checking ``__init__`` * Ignore ``object``
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylintrc b/pylintrc
index 376fb828e..b4a4e9fac 100644
--- a/pylintrc
+++ b/pylintrc
@@ -257,7 +257,7 @@ method-rgx=[a-z_][a-z0-9_]{2,}$
method-name-hint=[a-z_][a-z0-9_]{2,}$
# Regular expression which should only match function or class names that do
-# not require a docstring.
+# not require a docstring. Use ^(?!__init__$)_ to also check __init__.
no-docstring-rgx=__.*__
# Minimum line length for functions/classes that require docstrings, shorter