mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
d03b949b64
Previously, `pylint.utils.expand_modules` identified `__init__.py` files by a substring match, which led to false positives for files with names like `flycheck__init__.py`. (While users are unlikely to choose such a filename, tools like flycheck use these sorts of filenames for temporary files.) The result was that `pylint` would end up linting the entire package, not just the file in question. The fix is straightforward -- we use `os.path.basename` instead of a substring check, and add a test.
2 lines
11 B
Python
2 lines
11 B
Python
"""test"""
|