Check path string properly (#9367)

A minor whoopsie, 158367bf9 forgot to update this line.

I'm not sure how this gets tested in CI.
This commit is contained in:
Nick Drozd
2024-01-02 15:02:34 -06:00
committed by GitHub
parent 38f4d9e335
commit 08c60f513b

View File

@@ -22,7 +22,7 @@ def find_ruff_bin() -> str:
user_scheme = "posix_user"
path = os.path.join(sysconfig.get_path("scripts", scheme=user_scheme), ruff_exe)
if path.is_file():
if os.path.isfile(path):
return path
raise FileNotFoundError(path)