mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
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:
committed by
Johannes Altmanninger
parent
861002917a
commit
5ade4a037e
@@ -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?")
|
||||
|
||||
Reference in New Issue
Block a user