vnpy/tools/format_all.py

16 lines
233 B
Python
Raw Normal View History

import logging
import subprocess
logger = logging.Logger(__file__)
2019-01-24 10:25:48 +00:00
def format_black():
subprocess.check_call(["python", "-m", "black", "."])
if __name__ == "__main__":
2019-01-24 10:25:48 +00:00
if not format_black():
exit(1)
exit(0)