Skip to content

Commit

Permalink
Merge branch 'feature/change-build-process' into chore/upgrade-module…
Browse files Browse the repository at this point in the history
…-programming-llm
  • Loading branch information
dmytropolityka authored Aug 12, 2024
2 parents 9f35a96 + d1c2d34 commit 39d4565
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 3 deletions.
59 changes: 58 additions & 1 deletion log_viewer/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions log_viewer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python = "3.11.*"
fastapi = "^0.109.1"
uvicorn = "^0.23.0"
docker = "^6.1.3"
mypy = "1.11.1"
prospector = "^1.10.2"

[tool.poetry.group.dev.dependencies]
Expand Down
10 changes: 9 additions & 1 deletion scripts/install_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ def main():
]

success = True
path_env = os.environ["PATH"]

for module in modules:
if os.path.isdir(module):
result = subprocess.run(["poetry", "install"], cwd=module)

path = os.path.join(os.getcwd(), module, ".venv")
os.environ["VIRTUAL_ENV"] = path
os.environ["PATH"] = os.path.join(path, "bin") + os.pathsep + path_env

subprocess.run([sys.executable, "-m", "venv", path])
result = subprocess.run(["poetry", "install"], cwd=path)

if result.returncode != 0:
success = False

Expand Down
7 changes: 6 additions & 1 deletion scripts/lint_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

def main():
modules = [
"docs",
"log_viewer",
"assessment_module_manager",
"athena", # the version in this commit only, can differ for modules
Expand All @@ -19,9 +18,15 @@ def main():
]

success = True
path_env = os.environ["PATH"]

for module in modules:
if os.path.isdir(module):

path = os.path.join(os.getcwd(), module, ".venv")
os.environ["VIRTUAL_ENV"] = path
os.environ["PATH"] = os.path.join(path, "bin") + os.pathsep + path_env

result = subprocess.run(["poetry", "run", "prospector", "--profile",
os.path.abspath(os.path.join(os.path.dirname(__file__), "../.prospector.yaml"))],
cwd=module)
Expand Down

0 comments on commit 39d4565

Please sign in to comment.