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