在vim中使用带有Syntastic的多个Python检查器时出现问题

2024-05-17 09:53:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我在我的.vimrc文件中设置了多个checker,但似乎没有效果。当我保存我的文件时,我启用了自动检查,所以我只能进行8次检查,这是怎么回事? 这是我的SyntasticInfo输出:

Syntastic version: 3.10.0-22 (Vim 802, Darwin)
Info for filetype: python
Global mode: active
Filetype python is active
The current file will be checked automatically
Available checkers: flake8 mypy pep8 pycodestyle pyflakes pylint python
Currently enabled checkers: flake8 pylint mypy
Press ENTER or type command to continue

我使用Vundle安装了Syntastic,以下是我在.vimrc文件中的设置:

let g:syntastic_python_checkers = ['flake8', 'pylint', 'mypy']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_wq = 0

我如何知道只执行了8次检查?嗯,我有另一个小窗口,它打开了支票,在它的底部写着::SyntasticCheck flake8 (python)

我已经在我的python环境中正确安装了所有这些linter,我从中编写代码文件


Tags: 文件flake8checkervimrcloclistpylintactive