Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 7 additions & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install dev dependencies
run: |
uv sync --extra dev
uv sync --extra dev --extra llm --extra python-client
Comment thread
bitflicker64 marked this conversation as resolved.
Outdated

- name: Check code formatting with Ruff
run: |
Expand All @@ -49,3 +49,9 @@ jobs:
- name: Lint code with Ruff
run: |
uv run ruff check .

- name: Type check with ty (non-blocking)
run: uv run ty check hugegraph-llm/src hugegraph-python-client/src
Comment thread
bitflicker64 marked this conversation as resolved.
continue-on-error: true
# TODO: extend scope to hugegraph-ml once heavy optional deps (DGL, PyTorch) are handled
# TODO: add graph-mcp once the module is introduced
5 changes: 0 additions & 5 deletions hugegraph-llm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ allow-direct-references = true
hugegraph-python-client = { workspace = true }
pycgraph = { git = "https://github.com/ChunelFeng/CGraph.git", subdirectory = "python", tag = "v3.2.2", marker = "platform_machine == 'aarch64'" }

[tool.mypy]
disable_error_code = ["import-untyped"]
check_untyped_defs = true
disallow_untyped_defs = false

[tool.ruff]
line-length = 120
indent-width = 4
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dev = [
"pylint~=3.0.0",
"ruff>=0.11.0",
"mypy>=1.16.1",
"ty>=0.0.51", # pre-stable (0.0.x): consider tight pinning to avoid surprise breakage
"pre-commit>=3.5.0",
]

Expand Down Expand Up @@ -197,3 +198,6 @@ indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true

[tool.ty.rules]
# Start permissive; tighten incrementally as errors are fixed
Loading