Break tools out into their own dirs
This commit is contained in:
parent
b56030804c
commit
3b9e4076a5
15 changed files with 59 additions and 66 deletions
tools/autoflake
7
tools/autoflake/BUILD
Normal file
7
tools/autoflake/BUILD
Normal file
|
@ -0,0 +1,7 @@
|
|||
py_binary(
|
||||
name = "autoflake",
|
||||
main = "__main__.py",
|
||||
deps = [
|
||||
py_requirement("autoflake"),
|
||||
]
|
||||
)
|
15
tools/autoflake/__main__.py
Normal file
15
tools/autoflake/__main__.py
Normal 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())
|
Loading…
Add table
Add a link
Reference in a new issue