mirror of https://github.com/mitchell/dotfiles.git
Modify linters and formatters for Python
This commit is contained in:
parent
426bbc3aba
commit
d72cc84b31
4
.vimrc
4
.vimrc
|
@ -138,7 +138,7 @@ let g:ale_linters = {
|
||||||
\ 'ruby': ['rubocop'],
|
\ 'ruby': ['rubocop'],
|
||||||
\ 'css': ['stylelint'],
|
\ 'css': ['stylelint'],
|
||||||
\ 'sh': ['shellcheck'],
|
\ 'sh': ['shellcheck'],
|
||||||
\ 'python': ['pyflakes', 'pycodestyle'],
|
\ 'python': ['pylint'],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ let g:ale_fixers = {
|
||||||
\ 'elixir': ['mix_format'],
|
\ 'elixir': ['mix_format'],
|
||||||
\ 'terraform': ['terraform'],
|
\ 'terraform': ['terraform'],
|
||||||
\ 'ruby': ['rubocop'],
|
\ 'ruby': ['rubocop'],
|
||||||
\ 'python': ['yapf'],
|
\ 'python': ['black'],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_fix_on_save = 1
|
||||||
|
|
Loading…
Reference in New Issue