From c56647a8cc41787cf1aff90a7d998b54d642ed7f Mon Sep 17 00:00:00 2001 From: Emerald Henry <87782037+henrii1@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:43:53 +0000 Subject: [PATCH] building dev env --- .github/workflows/main.yml | 40 +++++++++++++++++++------------------- Makefile | 17 +++++++++++----- pyproject.toml | 27 +++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 25 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ab3119..9c990d8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,20 @@ -name: CI -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: install package - run: make install - # - name: lint - # run: make lint - # - name: test - # run: make test - - name: format - run: make format +# name: CI +# on: +# push: +# branches: [ "main" ] +# pull_request: +# branches: [ "main" ] +# workflow_dispatch: +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: install package +# run: make install +# # - name: lint +# # run: make lint +# # - name: test +# # run: make test +# - name: format +# run: make format diff --git a/Makefile b/Makefile index 4acefa0..6168870 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,22 @@ install: - pip install --upgrade pip &&\ - pip install -r requirements.txt + sudo apt update + sudo apt install pipx + pipx ensurepath + pipx install poetry + poetry install --no-root + +env: + poetry shell test: - python -m pytest -vv --cov=webapp tests/test_*.py + python -m pytest -vv tests/test_*.py format: - black webapp/*.py tests/*.py + black crewai/*.py tests/*.py langchain/*.py llamaindex/*.py app.py lint: - pylint --disable=R,C --extension-pkg-whitelist='pydantic' webapp/main.py --ignore-patterns=tests/test_.*?py webapp/*.py + pylint --disable=R,C --extension-pkg-whitelist='pydantic' app.py --ignore-patterns=tests/test_.*?py langchain/*.py \ + llamaindex/*.py crewai/*.py refactor: format lint diff --git a/pyproject.toml b/pyproject.toml index e69de29..00f0f33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -0,0 +1,27 @@ +[tool.poetry] +name = "Comprehensive LLM powered App" +version = "0.1.0" +description = "LLM app comprising RAG, Autonomous Routing Agents and Agents Orchestration" +authors = ["Emerald Henry"] + +[tool.poetry.dependencies] +python = ">=3.10.0,<3.12" +crewai = "^0.11.0" +duckduckgo-search = "^4.4.2" +python-dotenv = "^1.0.1" +requests = "^2.31.0" + + +[tool.pyright] +# https://github.com/microsoft/pyright/blob/main/docs/configuration.md +useLibraryCodeForTypes = true +exclude = [".cache"] + +[tool.ruff] +# https://beta.ruff.rs/docs/configuration/ +select = ['E', 'W', 'F', 'I', 'B', 'C4', 'ARG', 'SIM'] +ignore = ['W291', 'W292', 'W293'] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" \ No newline at end of file