You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ignored-modules is supposed to support Unix-style pattern matching, but this is only the case for the no-member check whereas the no-name-in-module check only checks for exact matches. I've already fixed the issue and I'll submit a PR in a moment.
Minimal example
.
├── a.py
└── foo
├── bar_pb2.py
└── __init__.py
a.py:
"""a.py"""fromfoo.bar_pb2importBarBar()
Command used
pylint a.py --ignored-modules='*_pb2'
Pylint output
************* Module a
a.py:2:0: E0611: No name 'Bar'in module 'foo.bar_pb2' (no-name-in-module)
Bug description
ignored-modules
is supposed to support Unix-style pattern matching, but this is only the case for theno-member
check whereas theno-name-in-module
check only checks for exact matches. I've already fixed the issue and I'll submit a PR in a moment.Minimal example
a.py:
Command used
pylint a.py --ignored-modules='*_pb2'
Pylint output
Expected behavior
No error
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: