Skip to content

Commit ffd5c52

Browse files
Konfektchrisbra
authored andcommitted
runtime(compiler): ignore 'Found' messages in ruff and ty compiler
while at it, also update the ty command line closes: #19012 Signed-off-by: Konfekt <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent b91b306 commit ffd5c52

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

runtime/compiler/ruff.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
" Last Change: 2024 Nov 07
55
" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)
66
" 2025 Nov 06 by the Vim Project (do not set buffer-local makeprg)
7+
" 2024 Dec 24 by the Vim Project (mute Found messages)
78

89
if exists("current_compiler") | finish | endif
910
let current_compiler = "ruff"
@@ -16,6 +17,7 @@ exe 'CompilerSet makeprg=' .. escape('ruff check --output-format=concise '
1617
\ ..get(b:, 'ruff_makeprg_params', get(g:, 'ruff_makeprg_params', '--preview')),
1718
\ ' \|"')
1819
CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
20+
CompilerSet errorformat+=%-GFound\ %.%#
1921

2022
let &cpo = s:cpo_save
2123
unlet s:cpo_save

runtime/compiler/ty.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: Ty (Python Type Checker)
33
" Maintainer: @konfekt
4-
" Last Change: 2024 Dec 18
4+
" Last Change: 2024 Dec 24
55

66
if exists("current_compiler") | finish | endif
77
let current_compiler = "ty"
@@ -11,9 +11,10 @@ set cpo&vim
1111

1212
" CompilerSet makeprg=ty
1313
exe 'CompilerSet makeprg=' .. escape(
14-
\ get(b:, 'ty_makeprg', get(g:, 'ty_makeprg', 'ty --no-progress --color=never'))
15-
\ ..' check --output-format=concise', ' \|"')
14+
\ get(b:, 'ty_makeprg', get(g:, 'ty_makeprg', 'ty check --no-progress --color=never'))
15+
\ ..' --output-format=concise', ' \|"')
1616
CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
17+
CompilerSet errorformat+=%-GFound\ %.%#
1718

1819
let &cpo = s:cpo_save
1920
unlet s:cpo_save

0 commit comments

Comments
 (0)