From d55a9b582bf4afe96f21674b733ebf732b44b75b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Jan 2023 11:07:10 +0530 Subject: [PATCH] Use ruff for import sorting --- session.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/session.vim b/session.vim index 4412d3d06..6faeaa230 100644 --- a/session.vim +++ b/session.vim @@ -6,6 +6,10 @@ else let g:ale_linters = {'python': ['mypy', 'ruff --no-update-check']} endif let g:ale_python_mypy_executable = './mypy-editor-integration' +let g:ale_fixers = { +\ "python": ["ruff"], +\} +autocmd FileType python noremap \i :ALEFix set wildignore+==template.py set wildignore+=tags set expandtab