summaryrefslogtreecommitdiff
path: root/ale_linters/python/ruff.vim
diff options
context:
space:
mode:
authorActionless Loveless <actionless.loveless@gmail.com>2023-01-27 01:03:41 +0100
committerGitHub <noreply@github.com>2023-01-27 09:03:41 +0900
commit26c79014f52b0306ec619666bc73766f22621edb (patch)
treea94983a593b4dfefcf38a700337c63e9f9edcb9d /ale_linters/python/ruff.vim
parent69c1dc8b5f3d215d4a0538265b2d257c2ed7a8fa (diff)
downloadale-26c79014f52b0306ec619666bc73766f22621edb.zip
fix(ale_linters: python: ruff): add --stdin-filename if version > 0.0.69 (#4414)
Diffstat (limited to 'ale_linters/python/ruff.vim')
-rw-r--r--ale_linters/python/ruff.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/python/ruff.vim b/ale_linters/python/ruff.vim
index 67595fe3..34db0899 100644
--- a/ale_linters/python/ruff.vim
+++ b/ale_linters/python/ruff.vim
@@ -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