Skip to content

Commit 3c14334

Browse files
committed
improvements
1 parent bf63d4a commit 3c14334

37 files changed

Lines changed: 973 additions & 916 deletions

‎.beads/interactions.jsonl‎

Whitespace-only changes.

‎.beads/issues.jsonl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{"id":"vgi-python-e37","title":"move Invocation from function.py out to own file","description":"The Invocation clas is kind of seperate from functions, so it should be in its own file. Move it and all of its other associated classes like InvocationType to its own file","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-04T09:18:46.605941-05:00","created_by":"rusty","updated_at":"2026-01-04T09:24:37.922675-05:00","closed_at":"2026-01-04T09:24:37.922675-05:00","close_reason":"Closed"}
2+
{"id":"vgi-python-p91","title":"Move exception classes from function.py to own file","description":"Move InitIdentifierError and SchemaValidationError from vgi/function.py to a new vgi/exceptions.py file. Update imports in function.py and any other files that reference these exceptions.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-04T09:12:28.058227-05:00","created_by":"rusty","updated_at":"2026-01-04T09:17:52.477661-05:00","closed_at":"2026-01-04T09:17:52.477661-05:00","close_reason":"Closed"}

‎CLAUDE.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ takes longer:
3030
uv run ruff check --fix . && uv run ruff format .
3131
```
3232

33+
When making changes, we don't need to worry about backward compatibility, make the changes and change the import references.
3334

3435
## Project Overview
3536

‎tests/conftest.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import pytest
77
import structlog
88

9-
from vgi.function import Arguments, Invocation, InvocationType
9+
from vgi.arguments import Arguments
10+
from vgi.invocation import Invocation, InvocationType
1011

1112
# =============================================================================
1213
# Utility Functions (not fixtures, can be imported directly)

‎tests/scalar/test_client.py‎

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

1010
from tests.conftest import assert_total_rows
11+
from vgi.arguments import Arguments
1112
from vgi.client import Client
1213
from vgi.client.client import ClientError
13-
from vgi.function import Arguments
1414

1515

1616
class TestScalarFunctionClient:

‎tests/scalar/test_function.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
import structlog
1010

1111
from tests.conftest import make_scalar_invocation
12-
from vgi.arguments import Arg
13-
from vgi.function import Arguments, Invocation, InvocationType, SchemaValidationError
12+
from vgi.arguments import Arg, Arguments
13+
from vgi.exceptions import SchemaValidationError
14+
from vgi.invocation import Invocation, InvocationType
1415
from vgi.log import Level, Message
1516
from vgi.scalar_function import (
16-
Output,
1717
ProtocolInput,
1818
ScalarFunction,
1919
ScalarFunctionGenerator,
2020
ScalarOutputGenerator,
2121
)
22+
from vgi.table_function import Output
2223

2324

2425
class TestScalarFunctionGenerator:

‎tests/table/generator/conftest.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import pyarrow as pa
77
import pytest
88

9+
from vgi.arguments import Arguments
910
from vgi.client import Client, ClientError
10-
from vgi.function import Arguments
1111
from vgi.log import Message
1212
from vgi.table_function import TableFunctionGenerator
1313
from vgi.testing import FunctionTestClientError, TableFunctionTestClient

‎tests/table/generator/test_constant_table_function.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import structlog
66

77
from tests.conftest import make_invocation
8+
from vgi.arguments import Arguments
89
from vgi.examples.table import ConstantTableFunction
9-
from vgi.function import Arguments
1010
from vgi.testing import assert_table_function_output, batch
1111

1212
from .conftest import RunnerWithMode

‎tests/table/generator/test_exception_function.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import pyarrow as pa
44
import pytest
55

6+
from vgi.arguments import Arguments
67
from vgi.client import Client, ClientError
78
from vgi.examples.table import GeneratorExceptionFunction
8-
from vgi.function import Arguments
99
from vgi.testing import FunctionTestClientError, TableFunctionTestClient
1010

1111

‎tests/table/generator/test_logging_function.py‎

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

33
import pyarrow as pa
44

5+
from vgi.arguments import Arguments
56
from vgi.client import Client
67
from vgi.examples.table import LoggingGeneratorFunction
7-
from vgi.function import Arguments
88
from vgi.log import Level
99
from vgi.testing import TableFunctionTestClient
1010

0 commit comments

Comments
 (0)