Open
Description
Current problem
When using the prefered-modules
configuration extension there doesn't appear to be a way to specify submodules. Adding this capability would allow for greater specificity with this functionality and potentially avoid custom checker implementations.
Desired solution
For example, if we wanted to encourage the use of pathlib
instead of os.path
for filesystem operations without triggering warnings for os
more broadly, one could use something like the following configuration line within their .pylintrc
file:
preferred-modules=(os.path,pathlib)
Additional context
No response