fix(ale_linters: python: ruff): add --stdin-filename if version > 0.0.69 (#4414)

This commit is contained in:
Actionless Loveless
2023-01-27 01:03:41 +01:00
committed by GitHub
parent 69c1dc8b5f
commit 26c79014f5
2 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ function! ale_linters#python#ruff#GetCommand(buffer, version) abort
return ale#Escape(l:executable) . l:exec_args
\ . ale#Pad(ale#Var(a:buffer, 'python_ruff_options'))
\ . ' --format text'
\ . (ale#semver#GTE(a:version, [0, 0, 69]) ? ' -' : ' %s')
\ . (ale#semver#GTE(a:version, [0, 0, 69]) ? ' --stdin-filename %s -' : ' %s')
endfunction
function! ale_linters#python#ruff#Handle(buffer, lines) abort