summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam Blackwater <adam@bwtr.net>2023-11-08 21:44:11 +0000
committerGitHub <noreply@github.com>2023-11-08 21:44:11 +0000
commit50e237facda4b9c3761c3f3e9df185cfdf3d91e8 (patch)
treeadf6543d1e9c662e7ac064b196a1b5c764bcd1b2 /test
parent901d3ff8dd77c03662bc1105ba9964cff063178a (diff)
downloadale-50e237facda4b9c3761c3f3e9df185cfdf3d91e8.zip
Fix: Ruff output option (#4632)
* fix --output-format option * Add conditionally changing flag based on Ruff version
Diffstat (limited to 'test')
-rw-r--r--test/linter/test_ruff.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/linter/test_ruff.vader b/test/linter/test_ruff.vader
index efc9d869..049f04fa 100644
--- a/test/linter/test_ruff.vader
+++ b/test/linter/test_ruff.vader
@@ -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']