Skip to content

Commit

Permalink
building dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
henrii1 committed Mar 11, 2024
1 parent ec7ce11 commit c56647a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 25 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c56647a

Please sign in to comment.