summaryrefslogtreecommitdiff
path: root/.pylintrc
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2019-09-25 18:43:21 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-09-25 18:43:21 +0000
commit9faa8d58940f2ea1184f275943be581b79694c0f (patch)
treea75639b3f8efbcf63661de12d301ad28abcb844d /.pylintrc
parent571f7c36e89f67f4c2d1cacfd8f9269bf864d560 (diff)
downloadvyos-cloud-init-9faa8d58940f2ea1184f275943be581b79694c0f.tar.gz
vyos-cloud-init-9faa8d58940f2ea1184f275943be581b79694c0f.zip
pylintrc: add 'enter_context' to generated-members list
On Bionic (python 3.6.8) we now see no-member errors on untouched code. This does not reproduce on Xenial (3.5) nor on Eoan (3.7.4). The source of the failure was the release of astroid 2.3.0 vs. 2.2.5. Resolve this by adding the member attribute to the generated member list in pylintrc. This fixes CI failures.
Diffstat (limited to '.pylintrc')
-rw-r--r--.pylintrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.pylintrc b/.pylintrc
index e376b48b..365c8c8b 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -67,5 +67,5 @@ ignored-classes=argparse.Namespace,optparse.Values,thread._local
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
-generated-members=types,http.client,command_handlers,m_.*
+generated-members=types,http.client,command_handlers,m_.*,enter_context