1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/tools/test_format.py

23 lines
534 B
Python
Raw Normal View History

#!/usr/bin/env python
2020-09-21 08:26:41 -04:00
# 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
2018-11-30 03:27:41 -05:00
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__':
2018-11-30 03:27:41 -05:00
main()