Skip to content

Commit 2fccae0

Browse files
committed
style: apply ruff formatting
1 parent bbfbe9d commit 2fccae0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/promptfoo/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ def _find_external_promptfoo() -> Optional[str]:
108108

109109
if argv0_path and promptfoo_path_norm == argv0_path:
110110
is_self = True
111-
elif (
112-
sys.prefix != sys.base_prefix
113-
and os.path.dirname(promptfoo_path_norm) == os.path.dirname(_normalize_path(sys.executable))
111+
elif sys.prefix != sys.base_prefix and os.path.dirname(promptfoo_path_norm) == os.path.dirname(
112+
_normalize_path(sys.executable)
114113
):
115114
# Running in a virtual environment. Check if the found executable is in the same
116115
# directory as the Python interpreter. This detects shims (e.g. Windows .exe, uv)

0 commit comments

Comments
 (0)