在我的项目中,我正在导入一系列不同的其他模块/类,例如:
from my_project.filesystem import create_dir
from my_project.filesystem import file_size
from my_project.hashing import hash_from_file
from my_project.multiprocessing import max_workers_for
from my_project.multiprocessing import multiprocessing
保存文件时,Python extension会自动将这些行拖入:
from my_project.filesystem import create_dir, file_size
from my_project.hashing import hash_from_file
from my_project.multiprocessing import max_workers_for, multiprocessing
在设置中,我尝试禁用自动linting:
{
"python.linting.lintOnSave": false,
"python.linting.enabled": false,
"python.linting.pylintArgs": [
"--disable=all"
]
}
为清楚起见,我更喜欢将我的导入分开,但现在我面临着在修改任何更改之前“修复修复”的艰巨任务。
有没有办法禁用此功能(禁用整个扩展,这有效但删除了我希望继续使用的扩展的其他功能)?