From eb7509785e2f85546a3f8466ee8d1de74cf98953 Mon Sep 17 00:00:00 2001 From: Lukas Merz Date: Mon, 2 Sep 2024 09:43:57 +0200 Subject: [PATCH] test --- file_with_issue.py | 2 -- indexes/search_results.py | 2 +- pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 file_with_issue.py diff --git a/file_with_issue.py b/file_with_issue.py deleted file mode 100644 index 2f906b8..0000000 --- a/file_with_issue.py +++ /dev/null @@ -1,2 +0,0 @@ -def function_with_issue(param: list = []): # <- this should at least trigger unused param; and better yet, add a warning about assigning mutable default params - print("bla") \ No newline at end of file diff --git a/indexes/search_results.py b/indexes/search_results.py index c031a4d..83cf3c7 100644 --- a/indexes/search_results.py +++ b/indexes/search_results.py @@ -16,7 +16,7 @@ def prepare_search_result_for_gb3(index: str, search_result: ObjectApiResponse, raise HTTPException(status_code=500, detail="Index is not properly configured") def get_results(index: str, search_result: ObjectApiResponse, - display_string_factory: Callable[dict, str]) -> SearchResult: + display_string_factory: Callable[dict, str], unused: str = "") -> SearchResult: matches = [] hits = search_result["hits"]["hits"] for hit in hits: diff --git a/pyproject.toml b/pyproject.toml index 8ad6926..353451f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,4 @@ [tool.pytest.ini_options] pythonpath = [ "." -] \ No newline at end of file +]