From 28266d11cb74d129667a38055813ad6861aa31b1 Mon Sep 17 00:00:00 2001 From: Jason Lubken Date: Wed, 27 Jul 2022 16:20:19 -0400 Subject: [PATCH] Update pylint --- pyproject.toml | 2 +- src/dsdk/flowsheet.py | 2 +- src/dsdk/persistor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2a642ed..0419142 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ default_section = "THIRDPARTY" good-names = '''a,b,c,d,df,do_POST,e,i,id,logger,n,on,ok,tz''' [tool.pylint.message_control] -disable = '''duplicate-code,C0330''' +disable = '''duplicate-code''' extension-pkg-allow-list = [ "pymssql._mssql", ] diff --git a/src/dsdk/flowsheet.py b/src/dsdk/flowsheet.py index 544cfab..537e7fe 100644 --- a/src/dsdk/flowsheet.py +++ b/src/dsdk/flowsheet.py @@ -274,7 +274,7 @@ def rest( ) @retry((RequestsConnectionError, Timeout, SaveError)) - def on_rest( # pylint: disable=no-self-use + def on_rest( self, session: Session, url: str, diff --git a/src/dsdk/persistor.py b/src/dsdk/persistor.py index ae028f4..1130c27 100644 --- a/src/dsdk/persistor.py +++ b/src/dsdk/persistor.py @@ -239,7 +239,7 @@ def connect(self) -> Generator[Any, None, None]: raise NotImplementedError() @contextmanager - def cursor(self, con): # pylint: disable=no-self-use + def cursor(self, con): """Yield a cursor that provides dicts.""" # Replace return type with ContextManager[Any] when mypy is fixed. with con.cursor() as cursor: