ed1758a26a
[Mod] use black instead of yapf
16 lines
226 B
Python
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)
|