在我的项目中,我导入了一系列不同的其他模块/类,例如:
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 扩展会自动将这些行检查为:
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"
]
}
为清楚起见,我更喜欢将我的导入分开,但现在我面临着一项艰巨的任务,即在提交任何更改之前“修复修复”。
有没有办法禁用此功能(禁止禁用整个扩展程序,它可以工作但删除了我希望继续使用的扩展程序的其他功能)?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句