1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tools/test_format.py
Ryan Dahl 82dc1b8e59
Upgrade pylint (#2917)
depot_tools is removing pylint from its distribution so we must maintain
our own copy.
2019-09-11 16:47:42 -04:00

21 lines
460 B
Python
Executable file

#!/usr/bin/env python
# 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()