Open Integralist opened 8 years ago
@Integralist Did you ever get this sorted out? The Vim-Flake8 changelog for 1.6 indicates that Vim Flake8 configuration has been deprecated in favor of config files. The [Flake8] (http://flake8.pycqa.org/en/latest/user/configuration.html#user-configuration) documentation provides instructions on how to set up a config file, and then you can simply add the lines
[flake8]
ignore = F821,E302,E501
to it and reload Vim to see the changes take effect.
@ardentTech have a look at my vimrc in my dotfile repo. It all works fine now after some required changes
@Integralist cool cool. My config file syntax was off, so I edited my comment above to correct that.
Hello,
Problem
I call Flake8 whenever I write to a Buffer:
But it shows a list of errors which I've already configured to be ignored:
Here are the relevant lines from my
vimrc
:Software
I'm using terminal NeoVim (
NVIM 0.1.5-dev
) on latest Mac OS X release (10.11.5
)The Flake8 plugin appears to work as I can see it's being loaded as part of Syntastic:
I've looked at
:scriptnames
and I can see the flake8 plugin is being loaded:If I was to remove the following line from my
vimrc
:...then close Vim and re-open the relevant python file in Vim, I would see those errors appear in a quickfix window and that would be expected behaviour.
If I then put back that line into my vimrc, close Vim and re-open the relevant python file in Vim I'll see the errors are ignored. Again, expected behaviour.
The problem occurs only when calling Flake8 when writing to the current buffer. The errors re-appear, when they should be ignored.
Interestingly I noticed, when removing the
flake8_args
setting, that after opening the file and the quicklist window immediately appeared, that if I then wrote to the buffer I would get another quickfix window with the same errors. But the first quickfix window shows the command used as:I think the problem is that when I use
call Flake8
that I'm using the shell directly, maybe? This would explain why it's side-stepping my Syntastic ignore flag setting