Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "daily"
target-branch: "staging"
target-branch: "staging"
17 changes: 9 additions & 8 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

on:
push:
branches: [ "main" ]
branches: [ "main", "staging" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "staging" ]

permissions:
contents: read
Expand All @@ -19,15 +19,16 @@

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
- name: Install uv
uses: astral-sh/setup-uv@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Python application' step
Uses Step
uses 'astral-sh/setup-uv' with ref 'v4', not a pinned commit hash
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
uv pip install --system flake8 pytest
uv pip install --system .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest

Create your own `.env` file from the `.env.template` file

### Install dependencies

Install project dependencies:

```bash
uv sync
```

Start the server:
```bash
flask --app api/index.py run --debug
uv run flask --app api/index.py run --debug
```

### Creating a graph
Expand Down
2 changes: 0 additions & 2 deletions api/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ def _define_ontology() -> Ontology:
ontology = _define_ontology()

def _create_kg_agent(repo_name: str):
global ontology

model_name = os.getenv('MODEL_NAME', 'gemini/gemini-2.0-flash')

model = LiteModel(model_name)
Expand Down
3,336 changes: 0 additions & 3,336 deletions poetry.lock

This file was deleted.

47 changes: 24 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
[tool.poetry]
[project]
name = "code-graph-backend"
version = "0.4.2"
description = "code_graph is designed to help developers visualize and analyze the structure of their source code. It takes source code as input and generates a graph representation, making it easier to understand relationships and dependencies within the codebase."
authors = ["Roi Lipman <roilipman@gmail.com>"]
authors = [{name = "Roi Lipman", email = "roilipman@gmail.com"}]
readme = "README.md"
requires-python = ">=3.12,<3.14"
dependencies = [
"graphrag-sdk>=0.8.1,<0.9.0",
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The graphrag-sdk dependency no longer includes the 'litellm' extra that was specified in the original Poetry configuration. If the LiteModel functionality in api/llm.py depends on litellm extras, this may cause runtime issues. Verify whether the litellm extra is still needed and update the dependency accordingly.

Suggested change
"graphrag-sdk>=0.8.1,<0.9.0",
"graphrag-sdk>=0.8.1,<0.9.0",
"litellm>=1.0.0,<2.0.0",

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The graphrag-sdk version has been significantly updated from ^0.5.0 to >=0.8.1,<0.9.0, and the 'litellm' extra was removed. This is a notable version jump that could introduce breaking changes or behavioral differences.

Suggested change
"graphrag-sdk>=0.8.1,<0.9.0",
"graphrag-sdk[litellm]>=0.5.0,<0.6.0",

Copilot uses AI. Check for mistakes.
"tree-sitter>=0.25.2,<0.26.0",
"validators>=0.35.0,<0.36.0",
"falkordb>=1.1.3,<2.0.0",
"tree-sitter-c>=0.24.1,<0.25.0",
"tree-sitter-python>=0.25.0,<0.26.0",
"tree-sitter-java>=0.23.5,<0.24.0",
"flask>=3.1.0,<4.0.0",
"python-dotenv>=1.0.1,<2.0.0",
"multilspy @ git+https://github.com/AviAvni/multilspy.git@python-init-params",
"javatools>=1.6.0,<2.0.0",
"pygit2>=1.17.0,<2.0.0",
"toml>=0.10.2,<0.11.0",
]

[tool.poetry.dependencies]
python = "^3.10"
graphrag-sdk = { version = "^0.5.0", extras = ["litellm"] }
tree-sitter = "^0.24.0"
validators = "^0.34.0"
falkordb = "^1.0.10"
tree-sitter-c = "^0.23.4"
tree-sitter-python = "^0.23.6"
tree-sitter-java = "^0.23.5"
flask = "^3.1.0"
python-dotenv = "^1.0.1"
multilspy = {git = "https://github.com/AviAvni/multilspy.git", rev = "python-init-params"}
javatools = "^1.6.0"
pygit2 = "^1.17.0"
toml = "^0.10.2"
[project.optional-dependencies]
test = [
"pytest>=9.0.2,<10.0.0",
]

[tool.poetry.group.test.dependencies]
pytest = "^8.2.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.setuptools.packages.find]
where = ["."]
110 changes: 0 additions & 110 deletions requirements.txt

This file was deleted.

Loading
Loading