From 0caed4b26e5d55c43f7e7dc91f56bd8c5c7042fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Fri, 12 May 2023 16:58:21 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=96=8B=20refactor:=20debugging=20comm?= =?UTF-8?q?ands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_gpt/options/generate/generator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev_gpt/options/generate/generator.py b/dev_gpt/options/generate/generator.py index 0b5316b..b3f72c4 100644 --- a/dev_gpt/options/generate/generator.py +++ b/dev_gpt/options/generate/generator.py @@ -3,6 +3,7 @@ import os import random import re import shutil +import sys from typing import Callable from typing import List, Text, Optional @@ -440,10 +441,11 @@ pytest 'red') return -1 continue + command = 'dev-gpt' if sys.argv[0] == 'dev-gpt' else 'python main.py' print(f''' You can now run or deploy your microservice: -dev-gpt run --path {self.microservice_root_path} -dev-gpt deploy --path {self.microservice_root_path} +{command} run --path {self.microservice_root_path} +{command} deploy --path {self.microservice_root_path} ''' ) return 0 From 5adab64b310a98cddce523982aace49544daaeeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Fri, 12 May 2023 18:05:10 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=96=8B=20refactor:=20debugging=20comm?= =?UTF-8?q?ands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_gpt/options/generate/templates_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev_gpt/options/generate/templates_user.py b/dev_gpt/options/generate/templates_user.py index fff03ee..ed31362 100644 --- a/dev_gpt/options/generate/templates_user.py +++ b/dev_gpt/options/generate/templates_user.py @@ -17,7 +17,7 @@ not_allowed_function_string = '''The implemented function and the test must not The implemented function and the test must not access a database. The implemented function and the test must not access a display. The implemented function and the test must not access external apis except unless it is explicitly mentioned in the description or test case (e.g. by mentioning the api that should be used or by providing a URL to access the data). -The implemented function and the test must not load data from the local file system unless it was created by the implemented function itself. +The implemented function and the test must not open files from the local file system unless it was created by the implemented function itself. The implemented function and the test must not use a pre-trained model unless it is explicitly mentioned in the description. The implemented function and the test must not train a model. The implemented function and the test must not contain prototype or placeholder implementations.