Skip to content

Commit c5d716d

Browse files
committed
fix imports
1 parent 3c8823e commit c5d716d

File tree

689 files changed

+3671
-3565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

689 files changed

+3671
-3565
lines changed

.github/codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ component_management:
1010
- component_id: codegen-sdk-python # this is an identifier that should not be changed
1111
name: codegen-sdk-python # this is a display name, and can be changed freely
1212
paths:
13-
- src/graph_sitter/python/**
13+
- src/codegen_sdk/python/**
1414
statuses:
1515
- type: project # in this case every component that doens't have a status defined will have a project type one
1616
threshold: 0 # Shouldn't remove coverage
@@ -19,7 +19,7 @@ component_management:
1919
- component_id: codegen-sdk-typescript
2020
name: codegen-sdk-typescript
2121
paths:
22-
- src/graph_sitter/typescript/**
22+
- src/codegen_sdk/typescript/**
2323
statuses:
2424
- type: project # in this case every component that doens't have a status defined will have a project type one
2525
threshold: 0 # Shouldn't remove coverage
@@ -28,7 +28,7 @@ component_management:
2828
- component_id: codegen-sdk-core
2929
name: codegen-sdk-core
3030
paths:
31-
- src/graph_sitter/**
31+
- src/codegen_sdk/**
3232
- component_id: codegen-git
3333
name: codegen-git
3434
paths:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ alembic_versions_backup
5555
**/.virtual_documents
5656
/.nvmrc
5757
**/build/test-results/test/TEST*.xml
58-
src/graph_sitter/__init__.py
58+
src/codegen_sdk/__init__.py
5959
src/**/*.html
6060
.ccache/
6161
uv-*.tar.gz

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ repos:
7171
# types: [file]
7272
# language: system
7373
# pass_filenames: false
74-
# files: "codegen-backend/codegen_tests/graph_sitter/codemod/.*/expected_diff.patch"
74+
# files: "codegen-backend/codegen_tests/codegen_sdk/codemod/.*/expected_diff.patch"
7575
- repo: https://github.com/fpgmaas/deptry.git
7676
rev: "0.22.0"
7777
hooks:

codegen-git/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ source = "vcs"
2626
raw-options = { root = ".." }
2727

2828
[tool.hatch.metadata.hooks.vcs]
29-
Homepage = "https://github.com/codegen-sh/graph_sitter"
30-
source_archive = "https://github.com/codegen-sh/graph_sitter/archive/{commit_hash}.zip"
29+
Homepage = "https://github.com/codegen-sh/codegen_sdk"
30+
source_archive = "https://github.com/codegen-sh/codegen_sdk/archive/{commit_hash}.zip"
3131

3232
#[tool.hatch.build.targets.wheel.hooks.mypyc]
3333
#dependencies = ["hatch-mypyc", "pydantic"]

conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import logging
22
import os
33

4-
from graph_sitter.core import autocommit
5-
from graph_sitter.testing.models import Size
4+
from codegen_sdk.core import autocommit
5+
from codegen_sdk.testing.models import Size
66

77

88
def find_dirs_to_ignore(start_dir, prefix):
@@ -15,7 +15,7 @@ def find_dirs_to_ignore(start_dir, prefix):
1515
return dirs_to_ignore
1616

1717

18-
collect_ignore_glob = ["codegen_tests/graph_sitter/codemod/**/*.py"]
18+
collect_ignore_glob = ["codegen_tests/codegen_sdk/codemod/**/*.py"]
1919
if not autocommit.enabled:
2020
collect_ignore_glob.append("**/test_autocommit.py")
2121

docs/building-with-codegen/traversing-the-call-graph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Here's how to build a directed graph of function calls using NetworkX:
3434

3535
```python
3636
import networkx as nx
37-
from graph_sitter.core.interfaces.callable import FunctionCallDefinition
38-
from graph_sitter.core.function import Function
37+
from codegen_sdk.core.interfaces.callable import FunctionCallDefinition
38+
from codegen_sdk.core.function import Function
3939

4040
def create_call_graph(start_func, end_func, max_depth=5):
4141
G = nx.DiGraph()

docs/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from sybil.parsers.markdown import PythonCodeBlockParser
77
from doctest import ELLIPSIS
88

9-
from graph_sitter.code_generation.current_code_codebase import get_documented_objects
10-
from graph_sitter.codebase.factory.get_session import get_codebase_session
11-
from graph_sitter.enums import ProgrammingLanguage
12-
from graph_sitter.typescript.class_definition import TSClass
13-
from graph_sitter.typescript.file import TSFile
9+
from codegen_sdk.code_generation.current_code_codebase import get_documented_objects
10+
from codegen_sdk.codebase.factory.get_session import get_codebase_session
11+
from codegen_sdk.enums import ProgrammingLanguage
12+
from codegen_sdk.typescript.class_definition import TSClass
13+
from codegen_sdk.typescript.file import TSFile
1414
from gscli.generate.runner_imports import EXTERNAL_IMPORTS
1515
SAMPLE_FILENAME = {
1616
ProgrammingLanguage.PYTHON: "sample.py",

hatch.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build.hooks.vcs]
22
dependencies = ["hatch-vcs>=0.4.0"]
3-
version-file = "src/graph_sitter/__init__.py"
3+
version-file = "src/codegen_sdk/__init__.py"
44

55
[metadata]
66
allow-direct-references = true
@@ -32,7 +32,7 @@ dependencies = [
3232
]
3333

3434
[build.targets.wheel.hooks.cython.options]
35-
src = "graph_sitter"
35+
src = "codegen_sdk"
3636
compile_args = [
3737
"-O3",
3838
{ platforms = [
@@ -71,7 +71,7 @@ macos-max-compat = false
7171

7272
[build]
7373
packages = [
74-
"src/graph_sitter",
74+
"src/codegen_sdk",
7575
"src/graph_visualization",
7676
"src/gscli",
7777
]
@@ -83,7 +83,7 @@ source_archive = "https://github.com/codegen-sh/codegen-sdk/archive/{commit_hash
8383

8484
[build.targets.wheel.hooks.custom]
8585
enable-by-default = false
86-
path = "src/graph_sitter_build/build.py"
86+
path = "src/codegen_sdk_build/build.py"
8787
require-runtime-dependencies = true
8888
[envs.default]
8989
installer = "uv"

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exclude = (?x)(
4646
| scripts/.*
4747
| .*/codemods/.*/test_.*/
4848
| ^/expected/
49-
| src/graph_sitter/skills/*
49+
| src/codegen_sdk/skills/*
5050
)
5151
plugins = pydantic.mypy
5252

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ classifiers = [
6262

6363
[project.scripts]
6464
gs = "gscli.main:main"
65-
run_string = "graph_sitter.core.main:main"
65+
run_string = "codegen_sdk.core.main:main"
6666
[project.optional-dependencies]
6767
types = [
6868
"types-networkx>=3.2.1.20240918",

0 commit comments

Comments
 (0)