File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 runs-on : ubuntu-latest
2121 steps :
2222 - uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
2325
2426 - name : Set up Python
2527 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ repos:
1515 args : [--fix]
1616 - id : ruff-format
1717
18- - repo : local
18+ - repo : https://github.com/astral-sh/uv-pre-commit
19+ rev : 0.6.1
1920 hooks :
20- - id : uv-lock-check
21- name : uv lock check
22- entry : uv lock --check
23- language : system
24- pass_filenames : false
21+ - id : uv-lock
22+ # Ensures uv.lock is up to date with pyproject.toml
2523
24+ - repo : local
25+ hooks :
2626 - id : mypy
2727 name : mypy
2828 entry : uv run mypy src/
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" hatchling" ]
2+ requires = [" hatchling" , " hatch-vcs " ]
33build-backend = " hatchling.build"
44
55[project ]
66name = " cocoindex-code"
7- version = " 0.1.0 "
7+ dynamic = [ " version " ]
88description = " MCP server for indexing and querying codebases using CocoIndex"
99readme = " README.md"
1010license = " MIT"
@@ -48,6 +48,9 @@ Homepage = "https://github.com/cocoindex-io/cocoindex-code"
4848Repository = " https://github.com/cocoindex-io/cocoindex-code"
4949Issues = " https://github.com/cocoindex-io/cocoindex-code/issues"
5050
51+ [tool .hatch .version ]
52+ source = " vcs"
53+
5154[tool .hatch .build .targets .wheel ]
5255packages = [" src/cocoindex_code" ]
5356
You can’t perform that action at this time.
0 commit comments