Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- .vscode/settings.json +7 -0
- Makefile +52 -0
- database.db +0 -0
- gpt-engineer/workspace/project.py +0 -0
- workspace/database.db +0 -0
- workspace/main.py +1 -0
.vscode/settings.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"python.testing.pytestArgs": [
|
3 |
+
"workspace"
|
4 |
+
],
|
5 |
+
"python.testing.unittestEnabled": false,
|
6 |
+
"python.testing.pytestEnabled": true
|
7 |
+
}
|
Makefile
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#Sets the default shell for executing commands as /bin/bash and specifies command should be executed in a Bash shell.
|
2 |
+
SHELL := /bin/bash
|
3 |
+
|
4 |
+
# Color codes for terminal output
|
5 |
+
COLOR_RESET=\033[0m
|
6 |
+
COLOR_CYAN=\033[1;36m
|
7 |
+
COLOR_GREEN=\033[1;32m
|
8 |
+
|
9 |
+
# Defines the targets help, install, dev-install, and run as phony targets.
|
10 |
+
.PHONY: help install run
|
11 |
+
|
12 |
+
#sets the default goal to help when no target is specified on the command line.
|
13 |
+
.DEFAULT_GOAL := help
|
14 |
+
|
15 |
+
#Disables echoing of commands.
|
16 |
+
.SILENT:
|
17 |
+
|
18 |
+
#Sets the variable name to the second word from the MAKECMDGOALS.
|
19 |
+
name := $(word 2,$(MAKECMDGOALS))
|
20 |
+
|
21 |
+
#Defines a target named help.
|
22 |
+
help:
|
23 |
+
@echo "Please use 'make <target>' where <target> is one of the following:"
|
24 |
+
@echo " help Return this message with usage instructions."
|
25 |
+
@echo " install Will install the dependencies using Poetry."
|
26 |
+
@echo " run <folder_name> Runs GPT Engineer on the folder with the given name."
|
27 |
+
|
28 |
+
#Defines a target named install. This target will install the project using Poetry.
|
29 |
+
install: poetry-install install-pre-commit farewell
|
30 |
+
|
31 |
+
#Defines a target named poetry-install. This target will install the project dependencies using Poetry.
|
32 |
+
poetry-install:
|
33 |
+
@echo -e "$(COLOR_CYAN)Installing project with Poetry...$(COLOR_RESET)" && \
|
34 |
+
poetry install
|
35 |
+
|
36 |
+
#Defines a target named install-pre-commit. This target will install the pre-commit hooks.
|
37 |
+
install-pre-commit:
|
38 |
+
@echo -e "$(COLOR_CYAN)Installing pre-commit hooks...$(COLOR_RESET)" && \
|
39 |
+
poetry run pre-commit install
|
40 |
+
|
41 |
+
#Defines a target named farewell. This target will print a farewell message.
|
42 |
+
farewell:
|
43 |
+
@echo -e "$(COLOR_GREEN)All done!$(COLOR_RESET)"
|
44 |
+
|
45 |
+
#Defines a target named run. This target will run GPT Engineer on the folder with the given name.
|
46 |
+
run:
|
47 |
+
@echo -e "$(COLOR_CYAN)Running GPT Engineer on $(COLOR_GREEN)$(name)$(COLOR_CYAN) folder...$(COLOR_RESET)" && \
|
48 |
+
cd ./gpt-engineer && poetry run gpt-engineer projects/$(name) --model Llama3-70b-8192 --temperature 0.1
|
49 |
+
|
50 |
+
# Counts the lines of code in the project
|
51 |
+
cloc:
|
52 |
+
cloc . --exclude-dir=node_modules,dist,build,.mypy_cache,benchmark --exclude-list-file=.gitignore --fullpath --not-match-d='docs/_build' --by-file
|
database.db
ADDED
Binary file (8.19 kB). View file
|
|
gpt-engineer/workspace/project.py
ADDED
File without changes
|
workspace/database.db
ADDED
Binary file (12.3 kB). View file
|
|
workspace/main.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
print("Hello, World!")
|