vnpy/tools/format_all.py
nanoric ed1758a26a [Add] use flake8
[Mod] use black instead of yapf
2019-01-24 09:06:31 -04:00

16 lines
226 B
Python

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