Skip to content

Commit 6fc3a08

Browse files
authored
chore: Add make check-config command (#875)
* wip * Add check config * uncomment poetry command * test * uncomment * update lock poetry
1 parent 8a5c4c8 commit 6fc3a08

File tree

14 files changed

+316
-212
lines changed

14 files changed

+316
-212
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,22 @@ install:
9393
.PHONY: setup
9494
setup:
9595
poetry install --with setup,dev --verbose
96-
poetry run python3 src/backend/cli/main.py
96+
poetry run python3 src/backend/scripts/cli/main.py
9797

9898
.PHONY: setup-use-community
9999
setup-use-community:
100100
poetry install --with setup,community --verbose
101-
poetry run python3 src/backend/cli/main.py --use-community
101+
poetry run python3 src/backend/scripts/cli/main.py --use-community
102102

103103
.PHONY: win-setup
104104
win-setup:
105105
poetry install --with setup --verbose
106-
poetry run python src/backend/cli/main.py
106+
poetry run python src/backend/scripts/cli/main.py
107+
108+
.PHONY: check-config
109+
check-config:
110+
poetry install --with setup --verbose
111+
poetry run python src/backend/scripts/config/check_config.py
107112

108113
.PHONY: first-run
109114
first-run:

poetry.lock

Lines changed: 210 additions & 198 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ llama-index-llms-cohere = "^0.3.0"
5858
llama-index-embeddings-cohere = "^0.2.1"
5959
google-cloud-texttospeech = "^2.18.0"
6060
slack-sdk = "^3.33.1"
61+
onnxruntime = "1.19.2"
6162

6263
[tool.poetry.group.dev]
6364
optional = true
File renamed without changes.
File renamed without changes.

src/backend/cli/main.py renamed to src/backend/scripts/cli/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
from dotenv import dotenv_values
44

5-
from backend.cli.constants import (
5+
from backend.scripts.cli.constants import (
66
COMMUNITY_TOOLS,
77
CONFIG_FILE_PATH,
88
SECRETS_FILE_PATH,
99
TOOLS,
1010
)
11-
from backend.cli.prompts import (
11+
from backend.scripts.cli.prompts import (
1212
PROMPTS,
1313
community_tools_prompt,
1414
deployment_prompt,
@@ -19,13 +19,13 @@
1919
tool_prompt,
2020
update_variable_prompt,
2121
)
22-
from backend.cli.setters import (
22+
from backend.scripts.cli.setters import (
2323
delete_config_folders,
2424
write_config_files,
2525
write_env_file,
2626
write_template_config_files,
2727
)
28-
from backend.cli.utils import (
28+
from backend.scripts.cli.utils import (
2929
process_existing_yaml_config,
3030
show_examples,
3131
show_welcome_message,

src/backend/cli/prompts.py renamed to src/backend/scripts/cli/prompts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import inquirer
22

3-
from backend.cli.constants import (
3+
from backend.scripts.cli.constants import (
44
DATABASE_URL_DEFAULT,
55
FRONTEND_HOSTNAME_DEFAULT,
66
NEXT_PUBLIC_API_HOSTNAME_DEFAULT,
77
REDIS_URL_DEFAULT,
88
BuildTarget,
99
bcolors,
1010
)
11-
from backend.cli.setters import write_env_file
12-
from backend.cli.utils import print_styled
11+
from backend.scripts.cli.setters import write_env_file
12+
from backend.scripts.cli.utils import print_styled
1313

1414

1515
def overwrite_config_prompt():

src/backend/cli/setters.py renamed to src/backend/scripts/cli/setters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import yaml
44
from dotenv import set_key
55

6-
from backend.cli.constants import (
6+
from backend.scripts.cli.constants import (
77
CONFIG_FILE_PATH,
88
CONFIG_TEMPLATE_PATH,
99
DOT_ENV_FILE_PATH,

src/backend/cli/utils.py renamed to src/backend/scripts/cli/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
import yaml
55

6-
from backend.cli.constants import (
6+
from backend.scripts.cli.constants import (
77
ENV_YAML_CONFIG_MAPPING,
88
WELCOME_MESSAGE,
99
DeploymentName,
1010
bcolors,
1111
)
12-
from backend.cli.setters import read_yaml
12+
from backend.scripts.cli.setters import read_yaml
1313

1414

1515
def print_styled(text: str, color: str = bcolors.ENDC):

src/backend/scripts/config/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)