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/yamllint

8
tools/yamllint/BUILD Normal file
View file

@ -0,0 +1,8 @@
# WARNING: YAMLLINT is GLP3'd code. Do not extend, modify or depend on this as a lib.
py_binary(
name = "yamllint",
main = "__main__.py",
deps = [
py_requirement("yamllint"),
]
)

View file

@ -0,0 +1,15 @@
#!/usr/bin/python
# WARNING: Yamllint is GPL3'd code.
"""A shim for executing yamllint."""
import re
import sys
from yamllint.cli import run
if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw?|\.exe)?$", "", sys.argv[0])
sys.exit(run())