Remove broken `/usr/bin/format` script
I don't have permission to fork, please apply the following patch:
diff --git a/pyproject.toml b/pyproject.toml
index a1c7eaa..0de885f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,7 +26,6 @@ npyscreen = "^4.10.5"
[tool.poetry.scripts]
pacman-mirrors = "pacman_mirrors.pacman_mirrors:start"
-format = "black:main ."
[tool.poetry.group.lint.dependencies]
coverage = "^7.3.1"
poetry format
is broken anyway with the same syntax error.
This project shouldn't be shipping /usr/bin/format
regardless (even if it worked).
Story:
$ format
File "/usr/bin/format", line 8
sys.exit(main.())
^
SyntaxError: invalid syntax
$ # Huh? That's odd
$ cat /usr/bin/format
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from black import main
if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main.())
$ pacman -Qo /usr/bin/format
/usr/bin/format is owned by pacman-mirrors 4.27-1
$ # Great
Edited by Tom