diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-05 15:53:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 15:53:21 +0100 |
commit | 791119d4af1066b20fa2b5bf8fc82d04d843d51d (patch) | |
tree | 94890756f4380fb2c1d8abd92af66128533a1535 /tools/test_format.py | |
parent | e7cfd90b0f72874aa1535a382df32dce28bd587a (diff) |
build: rewrite tools/ scripts to deno (#8247)
This commit rewrites scripts in "tools/" directory
to use Deno instead of Python. In return it allows
to remove huge number of Python packages in "third_party/".
Diffstat (limited to 'tools/test_format.py')
-rwxr-xr-x | tools/test_format.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/test_format.py b/tools/test_format.py deleted file mode 100755 index ef2a0ffb3..000000000 --- a/tools/test_format.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -# This program fails if ./tools/format.py changes any files. - -import sys -import subprocess -import util - - -def main(): - util.run([sys.executable, "tools/format.py"]) - result = util.run_output( - ["git", "status", "-uno", "--porcelain", "--ignore-submodules"], - exit_on_fail=True) - if result.out: - print("Run tools/format.py ") - print(result.out) - sys.exit(1) - - -if __name__ == '__main__': - main() |