[Python] How to use ruff as fixer in vim with ALE

Discussão em 'Python' iniciado por Stack, Outubro 23, 2024.

  1. Stack

    Stack Membro Participativo

    I'm using ale in vim, and I want to add ruff as fixer for python.

    So, in .vimrc, I added:

    let g:ale_fixers = {
    \ 'python': ['ruff'],
    \ 'javascript': ['eslint'],
    \ 'typescript': ['eslint', 'tsserver', 'typecheck'],
    \}


    Then, when executing in vim the command ALEFix, I've go this error:


    117: Unknown function: ale#fixers#ruff#Fix
    ​

    Do you know how to integrate ruff as fixer in vim with ALE ?

    Continue reading...

Compartilhe esta Página