From 825ee95e7bb0ebc99c821a1cece21b8fd154547b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Fri, 26 May 2023 14:39:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20fix:=20filter=20more=20flask?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_gpt/constants.py | 2 +- dev_gpt/options/generate/templates_user.py | 1 - test/unit/test_packages.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dev_gpt/constants.py b/dev_gpt/constants.py index 06f194b..7aee40e 100644 --- a/dev_gpt/constants.py +++ b/dev_gpt/constants.py @@ -53,7 +53,7 @@ BLACKLISTED_PACKAGES = [ 'clearbit' # because of installation issues on latest version ] UNNECESSARY_PACKAGES = [ - 'flask', 'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead + 'flask', 'flask_restful', 'flask_json', 'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead ] LANGUAGE_PACKAGES = [ diff --git a/dev_gpt/options/generate/templates_user.py b/dev_gpt/options/generate/templates_user.py index 5004349..818b743 100644 --- a/dev_gpt/options/generate/templates_user.py +++ b/dev_gpt/options/generate/templates_user.py @@ -23,7 +23,6 @@ The implemented function and the test must not use a pre-trained model unless it The implemented function and the test must not train a model. The implemented function and the test must not contain prototype or placeholder implementations. The implemented function and the test must run in a docker container based on debian. -The implemented function and the test must not use libraries like Flask. The implemented function and the test must not have a __main__ function. The implemented function and the test must use gpt_3_5_turbo if the task requires the processing of language (e.g., understanding, generation, summarization, transformation, translation, modification or classification). Other language models are not allowed. The implemented function must follow a clean and elegant coding style.''' diff --git a/test/unit/test_packages.py b/test/unit/test_packages.py index af6c4ca..850a6fe 100644 --- a/test/unit/test_packages.py +++ b/test/unit/test_packages.py @@ -22,7 +22,7 @@ def test_package_parsing(): def test_package_parsing_blacklist(): packages_json_string = '''\ [ - ["Flask"], + ["Flask, flask_restful, flask_json"], [], [] ]'''