tools: Convert more tools to use the yaml file.

This commit is contained in:
Andrew Hamilton 2018-04-05 13:49:47 +10:00
parent bb475bfb2a
commit 79aef0a9d7
2 changed files with 12 additions and 11 deletions

View file

@ -508,11 +508,6 @@ def perltidy(path):
# perl6_syntax.deps={"rakudo"}
@deps(deps={"gcc"}, url="https://gcc.gnu.org/", executables={"gcc"})
def c_syntax_gcc(path):
return _run_command(["gcc", "-fsyntax-only", path])
@deps(deps={"splint"}, url="splint", executables={"splint"})
def splint(path):
stdout, stderr, returncode = _do_command(["splint", "-preproc", path])
@ -613,12 +608,6 @@ def uncrustify(path):
return status, _syntax_highlight_using_path(stdout, path)
@deps(deps={"php7.2-cli"}, url="https://en.wikipedia.org/wiki/PHP",
executables={"php7.2"})
def php7_syntax(path):
return _run_command(["php7.2", "--syntax-check", path])
def _pil_pixels(pil_image):
data = list(pil_image.getdata())
width = pil_image.width