Skip to content

Commit d4f3777

Browse files
Pass test_empty_dir test for Ruff
1 parent 50fd81f commit d4f3777

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/usethis/_tool/impl/test_ruff.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,11 @@ def test_empty_dir(self, tmp_path: Path):
342342

343343
# Act
344344
with change_cwd(tmp_path), files_manager():
345-
RuffTool().add_configs()
345+
RuffTool(
346+
# Needed to ensure the config is non-null (and so `ruff.toml` is
347+
# written)
348+
linter_detection="always",
349+
).add_configs()
346350

347351
# Assert
348352
assert not (tmp_path / ".ruff.toml").exists()

0 commit comments

Comments
 (0)