mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-09 19:21:33 +08:00
Fixed the issue with Black ignoring config file to tell it which file is being processed. (#3406) (#4894)
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
* Fixed the issue with Black ignoring files is being processed. (#3406) Add test for stdin-filename on test/fixers/test_ruff_format_fixer_callback.vader * Fixed the issue with Black ignoring files is being processed. (#3406) Fixed the problem on Windows's tests. * Fixed the issue with Black ignoring config file to tell it which file is being processed. Trailing whitespace removed
This commit is contained in:
@@ -42,6 +42,9 @@ function! ale#fixers#black#Fix(buffer) abort
|
||||
call add(l:cmd, l:options)
|
||||
endif
|
||||
|
||||
let l:fname = expand('#' . a:buffer . '...')
|
||||
call add(l:cmd, '--stdin-filename '.ale#Escape(ale#path#Simplify(l:fname)))
|
||||
|
||||
if expand('#' . a:buffer . ':e') is? 'pyi'
|
||||
call add(l:cmd, '--pyi')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user