Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignored-modules not ignored #3135

Closed
crbunney opened this issue Sep 25, 2019 · 2 comments
Closed

ignored-modules not ignored #3135

crbunney opened this issue Sep 25, 2019 · 2 comments
Labels
Milestone

Comments

@crbunney
Copy link

In trying to work around https://github.com/PyCQA/astroid/issues/697, I added boto3 and botocore to a pylintrc file as ignored-modules but the error persisted.

Is this the correct way to disable checks relating to libraries with dynamically generate members?

Steps to reproduce

  1. Create a pylint_test.py:
"""module docstring"""
import boto3
boto3.resource('sns').Topic('foo')
  1. create a pylintrc file containing:
[TYPECHECK]
ignored-modules=boto3,botocore
  1. pylint --rcfile=pylintrc pytlint_test.py

Current behavior

$ pylint --rcfile=../pylintrc pytlint_test.py
************* Module pytlint_test
pytlint_test.py:3:0: E1101: Instance of '' has no 'Topic' member (no-member)

Expected behavior

No errors reported

pylint --version output

$ pylint --version
pylint 2.4.1
astroid 2.3.0
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
@PCManticore
Copy link
Contributor

This should work but looks like a bug creeped, will investigate as part of 2.4.2.

@crbunney
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants