简体   繁体   中英

Settings preferences to pyflakes (with python-mode in vim)

I'm getting lots of errors I don't care about: mostly this kind:

fabfile.py|2 error| W0611 'os' imported but unused [pyflakes]

when I import something I'm going to use later but not yet

Is there a way (similar to a .jshintrc file when using jshint) file to Silence certain pyflakes errors warnings?

Thanks!

See :help 'g:pymode_lint_ignore in Vim . For your case, add the following to your vimrc .

let g:pymode_lint_ignore = "W0611"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM