Skip to content

Commit 3adffb3

Browse files
authored
chore: format fix (#81)
1 parent e18ff83 commit 3adffb3

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

src/cocoindex_code/indexer.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from __future__ import annotations
44

5-
from pathlib import Path, PurePath
65
from collections.abc import Iterable
6+
from pathlib import Path, PurePath
77

88
import cocoindex as coco
99
from cocoindex.connectors import localfs, sqlite
@@ -15,7 +15,14 @@
1515
from pathspec import GitIgnoreSpec
1616

1717
from .settings import PROJECT_SETTINGS
18-
from .shared import CODEBASE_DIR, EMBEDDER, EXT_LANG_OVERRIDE_MAP, GITIGNORE_SPEC, SQLITE_DB, CodeChunk
18+
from .shared import (
19+
CODEBASE_DIR,
20+
EMBEDDER,
21+
EXT_LANG_OVERRIDE_MAP,
22+
GITIGNORE_SPEC,
23+
SQLITE_DB,
24+
CodeChunk,
25+
)
1926

2027
# Chunking configuration
2128
CHUNK_SIZE = 800

src/cocoindex_code/project.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
from .indexer import indexer_main
1313
from .protocol import IndexingProgress
1414
from .settings import PROJECT_SETTINGS, ProjectSettings, load_gitignore_spec
15-
from .shared import CODEBASE_DIR, EMBEDDER, EXT_LANG_OVERRIDE_MAP, GITIGNORE_SPEC, SQLITE_DB, Embedder
15+
from .shared import (
16+
CODEBASE_DIR,
17+
EMBEDDER,
18+
EXT_LANG_OVERRIDE_MAP,
19+
GITIGNORE_SPEC,
20+
SQLITE_DB,
21+
Embedder,
22+
)
1623

1724

1825
class Project:

src/cocoindex_code/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import cocoindex as coco
1111
from cocoindex.connectors import sqlite
12-
from pathspec import GitIgnoreSpec
1312
from numpy.typing import NDArray
13+
from pathspec import GitIgnoreSpec
1414

1515
if TYPE_CHECKING:
1616
from cocoindex.ops.litellm import LiteLLMEmbedder

tests/test_e2e.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from pathlib import Path
1515

1616
import pytest
17+
from cocoindex.connectors import sqlite as coco_sqlite
1718
from typer.testing import CliRunner
1819

19-
from cocoindex.connectors import sqlite as coco_sqlite
2020
from cocoindex_code.cli import app
2121
from cocoindex_code.client import stop_daemon
2222
from cocoindex_code.settings import find_parent_with_marker
@@ -319,8 +319,7 @@ def test_session_respects_gitignore(e2e_project: Path) -> None:
319319
try:
320320
with conn.readonly() as db:
321321
file_paths = {
322-
row[0]
323-
for row in db.execute("SELECT DISTINCT file_path FROM code_chunks_vec")
322+
row[0] for row in db.execute("SELECT DISTINCT file_path FROM code_chunks_vec")
324323
}
325324
finally:
326325
conn.close()

0 commit comments

Comments
 (0)