Correcting format
In my haste to submit a pull-request I neglected to check format. Apologies.
@@ -4,6 +4,7 @@ from pathlib import Path
import sysconfig
from typing import Optional
+
def get_maturin_path() -> Optional[Path]:
SCRIPT_NAME = "maturin"
@@ -19,20 +20,23 @@ def get_maturin_path() -> Optional[Path]:
return False
-
- paths = list(filter(script_exists,
- filter(os.path.exists,
- map(script_dir, sysconfig.get_scheme_names()))))
+ paths = list(
+ filter(
+ script_exists,
+ filter(os.path.exists, map(script_dir, sysconfig.get_scheme_names())),
+ )
+ )
if paths:
return Path(paths[0]) / SCRIPT_NAME
return None
+
if __name__ == "__main__":
maturin = get_maturin_path()
if maturin is None:
- print('Unable to find `maturin` script')
+ print("Unable to find `maturin` script")
exit(1)
os.execv(maturin, [str(maturin)] + sys.argv[1:])
