Skip to content

[FIX] [WIP] NOT READY YEY#15

Open
Remi-Gau wants to merge 5 commits intodevfrom
fix/test_clean
Open

[FIX] [WIP] NOT READY YEY#15
Remi-Gau wants to merge 5 commits intodevfrom
fix/test_clean

Conversation

@Remi-Gau
Copy link
Copy Markdown

No description provided.

- name: Install
run: |
python -m pip install --upgrade pip
pip install .[dev]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no dev in the pyproject.toml

python -m pip install --upgrade pip
pip install -e .[tests]
- name: Run tests and coverage
run: make coverage
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no makefile in the repo

Comment thread .pre-commit-config.yaml
hooks:
- id: auto-walrus
# Sorts Python imports alphabetically and by section with `isort`.
- repo: https://github.com/pycqa/isort
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isort is more common than reorder-python-imports

may be less confusing for other pythonistas

Comment thread .pre-commit-config.yaml
args: [--mapping, '2', --sequence, '2', --offset, '0']

# Format TOML files
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to keep your pyproject.toml organized

Comment thread pyproject.toml
license = { file = "LICENSE.txt" }
authors = [{ name = "James Randolph", email = "jarandolph77@gmail.com" }]
dynamic = ["version"]
dependencies = ["langchain", "langchain_core", "langchain_community"]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you were missing some dependencies that will be needed for testing

Comment thread pyproject.toml
Comment on lines +39 to +42
version-file = "src/loxlm/_version.py"

[tool.pytest.ini_options]
addopts = "-ra -vv"
[tool.hatch.build.targets.wheel]
packages = ["src/loxlm"]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adapted some paths to match the packaging

Comment thread src/loxlm/rag_input.py
@@ -2,30 +2,25 @@

import json

from langchain.agents import AgentExecutor
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some imports were never used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant