From afb10af67704ac75871ee441dabe8df90a9d4497 Mon Sep 17 00:00:00 2001 From: Nagkumar Arkalgud Date: Fri, 19 Apr 2024 09:38:01 -0700 Subject: [PATCH] Fix cspell issues --- .cspell.json | 177 ++++++++---------- .../simulator/_conversation/conversation.py | 4 +- 2 files changed, 84 insertions(+), 97 deletions(-) diff --git a/.cspell.json b/.cspell.json index 579f82bde3c..fe38cd659fe 100644 --- a/.cspell.json +++ b/.cspell.json @@ -48,7 +48,8 @@ ".github/workflows/**", ".github/actions/**", ".github/pipelines/**", - ".github/CODEOWNERS" + ".github/CODEOWNERS", + "src/promptflow-evals/tests/**" ], "words": [ "aoai", @@ -108,122 +109,103 @@ "uvicorn" ], "ignoreWords": [ - "prompty", - "AADSTS700082", - "punc", - "mltable", - "tiktoken", - "Mobius", - "evals", - "nlines", "openmpi", + "ipynb", + "xdist", + "pydash", + "tqdm", "rtype", - "Hwfoxydrg", - "thead", - "yamls", - "runsv", - "continuumio", + "epocs", + "fout", + "funcs", + "todos", + "fstring", + "creds", + "zipp", + "gmtime", + "pyjwt", + "nbconvert", + "nbformat", + "pypandoc", + "dotenv", + "miniconda", "datas", - "pydash", - "genutils", - "werkzeug", + "tcgetpgrp", + "yamls", "fmt", - "httpx", - "pkill", - "levelno", - "nohup", - "pyjwt", - "wscript", + "serpapi", + "genutils", + "metadatas", + "tiktoken", + "bfnrt", + "orelse", + "thead", "sympy", - "endofprompt", - "miniconda", - "getch", + "ghactions", "esac", - "LANCZOS", - "cmpl", - "spawnve", - "metadatas", - "llmops", - "unlabel", - "llms", + "MSRC", + "pycln", "strictyaml", - "uqkvl", - "nologo", + "psutil", + "getch", + "tcgetattr", + "TCSADRAIN", + "stringio", + "jsonify", + "werkzeug", + "continuumio", + "pydantic", + "iterrows", "dtype", - "gunicorn", - "Pyinstaller", + "fillna", + "nlines", "aggr", - "pycln", - "jsonify", - "MSRC", - "metagenai", "tcsetattr", - "xdist", - "addrs", - "tcgetpgrp", - "setenv", - "epocs", - "vcrpy", - "TCSADRAIN", - "nbconvert", - "dotenv", - "fout", - "STARTF", - "otel", - "fillna", - "tqdm", - "gmtime", - "ghactions", - "runsvdir", - "pywin", - "serpapi", "pysqlite", - "zipp", + "AADSTS700082", + "Pyinstaller", + "runsvdir", + "runsv", + "levelno", + "LANCZOS", + "Mobius", + "ruamel", + "gunicorn", + "pkill", + "pgrep", + "Hwfoxydrg", + "llms", + "vcrpy", + "uionly", + "llmops", + "Abhishek", + "restx", + "httpx", "tiiuae", - "aiohttp", + "nohup", + "metagenai", + "WBITS", + "laddr", "nrows", - "funcs", - "orelse", - "Unlabel", - "ipynb", + "Dumpable", + "XCLASS", + "otel", "OTLP", - "pgrep", - "pypandoc", - "nbformat", - "psutil", "spawnv", - "fstring", - "pydantic", "arxiv", "autogen", "spawnve", + "addrs", + "pywin", + "STARTF", "mltable", "prompty", + "Prompty", + "setenv", + "cscript", "nologo", "wscript", "raisvc", - "restx", - "WBITS", - "cscript", - "bfnrt", - "ruamel", - "Prompty", - "todos", - "uionly", - "tcgetattr", - "stringio", - "Dumpable", - "XCLASS", - "iterrows", - "laddr", - "unbatched", - "creds", - "pybase", - "tkey", - "tparam", - "ncols", - "wohdjewodhfjevwdjfywlemfhe", - "dontcare", "evals", "redoc", "starlette", @@ -234,7 +216,12 @@ "mpnet", "wargs", "dcid", - "Deuter" + "cmpop", + "aiohttp", + "endofprompt", + "tkey", + "tparam", + "ncols" ], "flagWords": [ "Prompt Flow" diff --git a/src/promptflow-evals/promptflow/evals/synthetic/simulator/_conversation/conversation.py b/src/promptflow-evals/promptflow/evals/synthetic/simulator/_conversation/conversation.py index bb7188a047f..c79cf1d9527 100644 --- a/src/promptflow-evals/promptflow/evals/synthetic/simulator/_conversation/conversation.py +++ b/src/promptflow-evals/promptflow/evals/synthetic/simulator/_conversation/conversation.py @@ -30,8 +30,8 @@ def is_closing_message_helper(response: str): message = response.lower() if "?" in message.lower(): return False - punc = [".", ",", "!", ";", ":"] - for p in punc: + punctuation = [".", ",", "!", ";", ":"] + for p in punctuation: message = message.replace(p, "") if ( "bye" not in message.lower().split()