Fix 4490 - Fix pyright not running with poetry (#4491)

* Fix 4490 - Fix pyright not running with poetry

* Fix tests
This commit is contained in:
Horacio Sanson
2023-04-13 08:54:49 +09:00
committed by GitHub
parent 93100159a2
commit fdadaed2ba
2 changed files with 7 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ endfunction
function! ale_linters#python#pyright#GetCommand(buffer) abort
let l:executable = ale_linters#python#pyright#GetExecutable(a:buffer)
let l:exec_args = l:executable =~? 'pipenv\|poetry$'
\ ? ' run pyright'
\ ? ' run pyright-langserver'
\ : ''
let l:env_string = ''