Skip to content

Commit

Permalink
Check path string properly (#9367)
Browse files Browse the repository at this point in the history
A minor whoopsie, 158367b forgot to update this line.

I'm not sure how this gets tested in CI.
  • Loading branch information
nickdrozd authored Jan 2, 2024
1 parent 38f4d9e commit 08c60f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ruff/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08c60f5

Please sign in to comment.