From 45ae431d832af85249c4535982d5194e53df83c0 Mon Sep 17 00:00:00 2001 From: nanoric Date: Thu, 24 Jan 2019 06:26:57 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20black=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binding/tests/test.py | 2 ++ tools/check/check_linter.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binding/tests/test.py b/binding/tests/test.py index bb3ff46d..0d097519 100644 --- a/binding/tests/test.py +++ b/binding/tests/test.py @@ -65,6 +65,8 @@ class Spi(CThostFtdcTraderSpi): self, pRspInfo: CThostFtdcRspInfoField, nRequestID: int, bIsLast: bool ) -> None: print("OnRspError!") + + # pylint: enable=invalid-name diff --git a/tools/check/check_linter.py b/tools/check/check_linter.py index 3f59a3a7..f9642f14 100644 --- a/tools/check/check_linter.py +++ b/tools/check/check_linter.py @@ -18,7 +18,9 @@ def check_flake8(): def check_pylint(): passed = True try: - subprocess.check_call(["pylint", "-j", "0", "vnpy", "binding", "tests"]) + subprocess.check_call( + ["pylint", "-j", "0", "vnpy", "binding", "tests"] + ) except subprocess.SubprocessError: passed = False return passed