[Mod] black格式化

This commit is contained in:
nanoric 2019-01-24 06:26:57 -04:00
parent 37f528ba08
commit 45ae431d83
2 changed files with 5 additions and 1 deletions

View File

@ -65,6 +65,8 @@ class Spi(CThostFtdcTraderSpi):
self, pRspInfo: CThostFtdcRspInfoField, nRequestID: int, bIsLast: bool self, pRspInfo: CThostFtdcRspInfoField, nRequestID: int, bIsLast: bool
) -> None: ) -> None:
print("OnRspError!") print("OnRspError!")
# pylint: enable=invalid-name # pylint: enable=invalid-name

View File

@ -18,7 +18,9 @@ def check_flake8():
def check_pylint(): def check_pylint():
passed = True passed = True
try: try:
subprocess.check_call(["pylint", "-j", "0", "vnpy", "binding", "tests"]) subprocess.check_call(
["pylint", "-j", "0", "vnpy", "binding", "tests"]
)
except subprocess.SubprocessError: except subprocess.SubprocessError:
passed = False passed = False
return passed return passed