Break tools out into their own dirs

This commit is contained in:
Reid 'arrdem' McKenzie 2021-08-29 22:13:59 -06:00
commit 3b9e4076a5
15 changed files with 59 additions and 66 deletions
tools/autoflake

7
tools/autoflake/BUILD Normal file
View file

@ -0,0 +1,7 @@
py_binary(
name = "autoflake",
main = "__main__.py",
deps = [
py_requirement("autoflake"),
]
)

View file

@ -0,0 +1,15 @@
#!/usr/bin/env python3
"""
Shim for executing autoflake.
"""
import re
import sys
from autoflake import main
if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())