mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 21:46:27 +00:00
Update python linting
This commit is contained in:
parent
724860a098
commit
703f9d02b2
@ -78,7 +78,7 @@ if (g:vim_as_an_ide && !g:gui.has_linter_features) && (has('nvim') || v:version
|
|||||||
" NOTE: Some of these are installed when bootstrapping environment, outside of vim setup
|
" NOTE: Some of these are installed when bootstrapping environment, outside of vim setup
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'go': ['gopls', 'golint', 'gometalinter'],
|
\ 'go': ['gopls', 'golint', 'gometalinter'],
|
||||||
\ 'python': ['pyls', 'flake8', 'mypy', 'pylint'],
|
\ 'python': ['pyls', 'mypy'],
|
||||||
\ 'rust': ['rls', 'cargo'],
|
\ 'rust': ['rls', 'cargo'],
|
||||||
\ 'sh': ['language_server', 'shell', 'shellcheck'],
|
\ 'sh': ['language_server', 'shell', 'shellcheck'],
|
||||||
\ 'text': ['proselint', 'alex'],
|
\ 'text': ['proselint', 'alex'],
|
||||||
@ -93,12 +93,13 @@ if (g:vim_as_an_ide && !g:gui.has_linter_features) && (has('nvim') || v:version
|
|||||||
\ 'go': ['gofmt', 'goimports'],
|
\ 'go': ['gofmt', 'goimports'],
|
||||||
\ 'json': s:ale_pretty_trim_fixer,
|
\ 'json': s:ale_pretty_trim_fixer,
|
||||||
\ 'rust': ['rustfmt'],
|
\ 'rust': ['rustfmt'],
|
||||||
\ 'python': [ 'autopep8', 'reorder-python-imports', 'remove_trailing_lines', 'trim_whitespace'],
|
\ 'python': [ 'black', 'autopep8', 'reorder-python-imports', 'remove_trailing_lines', 'trim_whitespace'],
|
||||||
\ 'markdown': s:ale_pretty_trim_fixer,
|
\ 'markdown': s:ale_pretty_trim_fixer,
|
||||||
\ 'yaml': ['prettier', 'remove_trailing_lines'],
|
\ 'yaml': ['prettier', 'remove_trailing_lines'],
|
||||||
\ 'css': s:ale_pretty_trim_fixer,
|
\ 'css': s:ale_pretty_trim_fixer,
|
||||||
\ 'javascript': s:ale_pretty_trim_fixer,
|
\ 'javascript': s:ale_pretty_trim_fixer,
|
||||||
\}
|
\}
|
||||||
|
let g:ale_python_flake8_options = '--max-line-length 80'
|
||||||
|
|
||||||
" Create shortcut for ALEFix
|
" Create shortcut for ALEFix
|
||||||
nnoremap <F4> :ALEFix<CR>
|
nnoremap <F4> :ALEFix<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user