Skip to content

Commit

Permalink
Linters fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Oct 14, 2023
1 parent 0fcd263 commit 83d23bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ inline-quotes = "
multiline-quotes = """
docstring-quotes = """
avoid-escape = False
ignore = Q000,WPS306,I001,I005,WPS229,D400,WPS317,S101,WPS507,DAR101,DAR201,WPS112,F401,WPS300,WPS412,DAR301,D401,D205,WPS615,I004,WPS110,WPS420,C812,WPS404,WPS221,WPS305,WPS323,WPS204,WPS226,WPS220,WPS214
ignore = Q000,WPS306,I001,I005,WPS229,D400,WPS317,S101,WPS507,DAR101,DAR201,WPS112,F401,WPS300,WPS412,DAR301,D401,D205,WPS615,I004,WPS110,WPS420,C812,WPS404,WPS221,WPS305,WPS323,WPS204,WPS226,WPS220,WPS214,WPS217,WPS210,WPS111,WPS213
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ extend-ignore = """
WPS204,
WPS226,
WPS220,
WPS214
WPS214,
WPS217,
WPS210,
WPS111,
WPS213
"""

[tool.pylint]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ install_requires =

[flake8]
max-line-length = 120
extend-ignore = Q000,WPS306,I001,I005,WPS229,D400,WPS317,S101,WPS507,DAR201,DAR101,WPS112,F401,WPS300,WPS412,DAR301,D401,D205,WPS615,I004,WPS110,WPS420,C812,WPS404,WPS221,WPS305,WPS323,WPS204,WPS226,WPS220,WPS214
extend-ignore = Q000,WPS306,I001,I005,WPS229,D400,WPS317,S101,WPS507,DAR201,DAR101,WPS112,F401,WPS300,WPS412,DAR301,D401,D205,WPS615,I004,WPS110,WPS420,C812,WPS404,WPS221,WPS305,WPS323,WPS204,WPS226,WPS220,WPS214,WPS217,WPS210,WPS111,WPS213
8 changes: 4 additions & 4 deletions src/openai_api/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def logger(self):
:return: The logger object.
"""
self.___logger.debug("Getting logger...", self.___logger)
self.___logger.debug("Getting logger...")
return self.___logger

@logger.setter
Expand All @@ -540,7 +540,7 @@ def logger(self, value):
:param value: The new logger object.
"""
self.___logger.debug("Setting logger...", value)
self.___logger.debug("Setting logger...")
self.___logger = value

async def process_chat(self, prompt, default_choice=0, chat_name=None):
Expand All @@ -555,15 +555,15 @@ async def process_chat(self, prompt, default_choice=0, chat_name=None):
"""
# pylint: disable=too-many-branches
# pylint: disable=too-many-statements
# Prepare parameters
uid = str(uuid4())
self.___logger.debug(
"Processing chat '%s' with prompt '%s', tracking choice %s with uid=",
"Processing chat '%s' with prompt '%s', tracking choice %s with uid=%s",
chat_name,
prompt,
default_choice,
uid,
)
# Prepare parameters
params = {
"model": self.model,
"max_tokens": self.max_tokens,
Expand Down

0 comments on commit 83d23bf

Please sign in to comment.