0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/tools/test_format.py
Ryan Dahl 0b0d962eb9
Revert "Rewrite tools/format.py in deno (#1528)" (#1752)
tools/format.ts is making CI flaky and it's difficult to run right now.
Reverting to tools/format.py

This reverts commit f19622e768.
2019-02-12 15:20:32 -05:00

21 lines
445 B
Python
Executable file

#!/usr/bin/env python
# This program fails if ./tools/format.py changes any files.
import sys
import util
import sys
import subprocess
def main():
util.run([sys.executable, "tools/format.py"])
output = util.run_output(
["git", "status", "-uno", "--porcelain", "--ignore-submodules"])
if len(output) > 0:
print "Run tools/format.py "
print output
sys.exit(1)
if __name__ == '__main__':
main()