diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ef4d2d9..b2931a7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -21,19 +21,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install uv uses: astral-sh/setup-uv@v5 with: enable-cache: true - name: Install dependencies - run: uv sync + run: uv sync --python ${{ matrix.python-version }} --python-preference only-managed - name: Run prek run: uv run prek run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3019ab7..4fe177f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,4 +35,3 @@ repos: entry: uv run pytest tests/ -v language: system pass_filenames: false - stages: [pre-push] diff --git a/src/cocoindex_code/indexer.py b/src/cocoindex_code/indexer.py index c6c132b..a7f35de 100644 --- a/src/cocoindex_code/indexer.py +++ b/src/cocoindex_code/indexer.py @@ -116,7 +116,7 @@ async def process( table.declare_row( row=CodeChunk( id=await id_gen.next_id(chunk.text), - file_path=str(file.file_path.path), + file_path=file.file_path.path.as_posix(), language=language, content=chunk.text, start_line=chunk.start.line,