vnpy/tools/format_all.py
2019-01-24 09:06:32 -04:00

16 lines
233 B
Python

import logging
import subprocess
logger = logging.Logger(__file__)
def format_black():
subprocess.check_call(["python", "-m", "black", "."])
if __name__ == "__main__":
if not format_black():
exit(1)
exit(0)