Skip to content

Commit 90bda4c

Browse files
committed
Fix Ruff issues
1 parent 2998f16 commit 90bda4c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_security.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def test_blocks_system_directories(self):
3636

3737
for dangerous_dir in dangerous_dirs:
3838
if dangerous_dir.exists():
39-
assert not indexer._is_safe_to_scan(
40-
dangerous_dir
41-
), f"{dangerous_dir} should be blocked"
39+
assert not indexer._is_safe_to_scan(dangerous_dir), (
40+
f"{dangerous_dir} should be blocked"
41+
)
4242

4343
# /var root should be blocked (might resolve to /private/var)
4444
# Note: /var is often a symlink to /private/var on macOS
@@ -82,9 +82,9 @@ def test_blocks_shallow_home_subdirs(self):
8282

8383
# Direct child of home should be blocked
8484
shallow_dir = home / "test_project"
85-
assert not indexer._is_safe_to_scan(
86-
shallow_dir
87-
), "Shallow home subdirectory should be blocked"
85+
assert not indexer._is_safe_to_scan(shallow_dir), (
86+
"Shallow home subdirectory should be blocked"
87+
)
8888

8989
def test_safe_rglob_respects_depth(self):
9090
"""Test that safe_rglob respects max depth."""

0 commit comments

Comments
 (0)