style: replace black with ruff for Python formatting

Ruff's default format is very similar to black's, so there are only a
few changes made to our Python code. They are all contained in this
commit. The primary benefit of this change is that ruff's performance is
about an order of magnitude better, reducing runtime on this repo down
to under 20ms on my machine, compared to over 150ms with black, and even
more if any changes are performed by black.

Closes #11894

Closes #11918
This commit is contained in:
Daniel Rainer
2025-10-08 17:40:31 +02:00
committed by Johannes Altmanninger
parent 861002917a
commit 5ade4a037e
4 changed files with 10 additions and 14 deletions

View File

@@ -1423,7 +1423,7 @@ fish_bin_path = None
fish_bin_name = "fish.exe" if is_windows() else "fish"
if not fish_bin_dir:
print("The $__fish_bin_dir environment variable is not set. " "Looking in $PATH...")
print("The $__fish_bin_dir environment variable is not set. Looking in $PATH...")
fish_bin_path = find_executable(fish_bin_name)
if not fish_bin_path:
print("fish could not be found. Is fish installed correctly?")