Skip to content

Instantly share code, notes, and snippets.

@kathgironpe
Last active June 10, 2022 01:56
Show Gist options
  • Save kathgironpe/1c967ae52cf7b28fbd9511b4c9599ff1 to your computer and use it in GitHub Desktop.
Save kathgironpe/1c967ae52cf7b28fbd9511b4c9599ff1 to your computer and use it in GitHub Desktop.
Vim and Python linters

PEP 8 and Vim

brew install flake8

With syntastic, define the linter:

let g:syntastic_check_on_open = 1
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_aggregate_errors = 1

Formatting

pip install black

# pip install black before install black.vim plugin
Install https://github.com/psf/black/blob/main/plugin/black.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment