From cfae6fa829153dc8a900b12b5afc4477ccafb1ac Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 20 Sep 2024 16:41:13 -0400 Subject: [PATCH] Add test coverage for non-Python globs --- crates/ruff/tests/analyze_graph.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/ruff/tests/analyze_graph.rs b/crates/ruff/tests/analyze_graph.rs index 02fb5dfa4fc9f..fb678f28557f8 100644 --- a/crates/ruff/tests/analyze_graph.rs +++ b/crates/ruff/tests/analyze_graph.rs @@ -226,13 +226,14 @@ fn globs() -> Result<()> { root.child("ruff.toml").write_str(indoc::indoc! {r#" [analyze] - include-dependencies = { "ruff/a.py" = ["ruff/b.py"], "ruff/b.py" = ["ruff/*.py"] } + include-dependencies = { "ruff/a.py" = ["ruff/b.py"], "ruff/b.py" = ["ruff/*.py"], "ruff/c.py" = ["*.json"] } "#})?; root.child("ruff").child("__init__.py").write_str("")?; root.child("ruff").child("a.py").write_str("")?; root.child("ruff").child("b.py").write_str("")?; root.child("ruff").child("c.py").write_str("")?; + root.child("ruff").child("d.json").write_str("")?; insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), @@ -252,7 +253,9 @@ fn globs() -> Result<()> { "ruff/b.py", "ruff/c.py" ], - "ruff/c.py": [] + "ruff/c.py": [ + "ruff/d.json" + ] } ----- stderr -----