From 26c79014f52b0306ec619666bc73766f22621edb Mon Sep 17 00:00:00 2001 From: Actionless Loveless Date: Fri, 27 Jan 2023 01:03:41 +0100 Subject: fix(ale_linters: python: ruff): add --stdin-filename if version > 0.0.69 (#4414) --- ale_linters/python/ruff.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/python/ruff.vim') 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 -- cgit v1.2.3