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
8 changes: 1 addition & 7 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ repos:
entry: uv run pytest tests/ -v
language: system
pass_filenames: false
stages: [pre-push]
2 changes: 1 addition & 1 deletion src/cocoindex_code/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading