mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-26 05:51:08 +08:00
Fix: Ruff output option (#4632)
* fix --output-format option * Add conditionally changing flag based on Ruff version
This commit is contained in:
@@ -28,6 +28,12 @@ Execute(ruff should run with the file path of buffer in old versions):
|
||||
AssertLinterCwd expand('%:p:h')
|
||||
AssertLinter 'ruff', ale#Escape('ruff') . b:command_tail[:-23] . ' %s'
|
||||
|
||||
Execute(ruff should run with the --output-format flag in new versions):
|
||||
GivenCommandOutput ['ruff 0.1.0']
|
||||
|
||||
AssertLinterCwd expand('%:p:h')
|
||||
AssertLinter 'ruff', ale#Escape('ruff') . ' --output-format text --stdin-filename %s -'
|
||||
|
||||
Execute(ruff should run with the stdin in new enough versions):
|
||||
GivenCommandOutput ['ruff 0.0.83']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user