Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3082cc

Browse files
authored
python: mypy: append--follow-imports=silent (#2497)
Fixes usage with custom `exe` / `args`.Ref:#2107 (comment).
1 parent8dbb3ae commita3082cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎autoload/neomake/makers/ft/python.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function! neomake#makers#ft#python#mypy() abort
430430
" Follow imports, but do not emit errors/issues for it, which
431431
" would result in errors for other buffers etc.
432432
" XXX: dmypy requires "skip" or "error"
433-
callinsert(maker.args,'--follow-imports=silent')
433+
calladd(maker.args,'--follow-imports=silent')
434434
else
435435
let project_root=neomake#utils#get_project_root(a:jobinfo.bufnr)
436436
ifempty(project_root)

‎tests/ft_python.vader‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Execute (python: mypy):
448448

449449
let options = {'file_mode': 1}
450450
let bound_maker = neomake#core#instantiate_maker(maker, options, 0)
451-
AssertEqual bound_maker.args, ['--follow-imports=silent'] + base_args
451+
AssertEqual bound_maker.args,base_args +['--follow-imports=silent']
452452

453453
new
454454
let b:neomake = {'project_root': 'fake_project_root'}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp