Skip to content

Commit

Permalink
Update pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Jul 27, 2022
1 parent 33ff1c4 commit 28266d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
2 changes: 1 addition & 1 deletion src/dsdk/flowsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/dsdk/persistor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 28266d1

Please sign in to comment.