Skip to content

Commit 15ddbd6

Browse files
Merge remote-tracking branch 'origin/develop' into chore-remove-commit-param
2 parents e23eb57 + cfaca9f commit 15ddbd6

File tree

872 files changed

+7873
-4664
lines changed

Some content is hidden

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

872 files changed

+7873
-4664
lines changed

.circleci/config.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ executors:
99
default_image:
1010
docker:
1111
- image: ghcr.io/astral-sh/uv:python<<pipeline.parameters.python_version>>-bookworm
12-
working_directory: /graph-sitter
12+
working_directory: /codegen-sdk
1313
environment:
1414
UV_COMPILE_BYTECODE: 1
1515
UV_LINK_MODE: copy
@@ -18,7 +18,7 @@ executors:
1818
image: ubuntu-2404:current
1919
orbs:
2020
aws-cli: circleci/[email protected]
21-
codecov: codecov/codecov@5.0.3
21+
codecov: codecov/codecov@5.2.0
2222
node: circleci/[email protected]
2323
github-cli: circleci/[email protected]
2424
slack: circleci/[email protected]
@@ -96,9 +96,6 @@ commands:
9696
- run:
9797
command: |
9898
uv run --frozen cibuildwheel --output-dir dist
99-
if [[ "<<parameters.base_packages>>" == "true" ]]; then
100-
uv build --package codegen-git --wheel --sdist
101-
fi
10299
rm dist/.gitignore || true
103100
environment:
104101
HATCH_BUILD_HOOKS_ENABLE: "true"

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
* @codegen-sh/graph-sitter @codegen-team
1+
* @codegen-sh/codegen-sdk @codegen-team
22
**/skills @codegen-sh/capabilities @codegen-team @codegen-sh/capabilities
3-
**/code_generation @codegen-sh/graph-sitter @codegen-team
3+
**/code_generation @codegen-sh/codegen-sdk @codegen-team

.github/codecov.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,28 @@ component_management:
77
- type: project # in this case every component that doens't have a status defined will have a project type one
88
threshold: 0 # Shouldn't remove coverage
99
individual_components:
10-
- component_id: graph-sitter-python # this is an identifier that should not be changed
11-
name: graph-sitter-python # this is a display name, and can be changed freely
10+
- component_id: codegen-sdk-python # this is an identifier that should not be changed
11+
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
1717
- type: patch
1818
target: 50 # Language specific featues must be 100% covered
19-
- component_id: graph-sitter-typescript
20-
name: graph-sitter-typescript
19+
- component_id: codegen-sdk-typescript
20+
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
2626
- type: patch
2727
target: 50 # Language specific featues must be 100% covered
28-
- component_id: graph-sitter-core
29-
name: graph-sitter-core
28+
- component_id: codegen-sdk-core
29+
name: codegen-sdk-core
3030
paths:
31-
- src/graph_sitter/**
32-
- component_id: codegen-git
33-
name: codegen-git
34-
paths:
35-
- codegen-git/**
36-
31+
- src/codegen/sdk/**
3732

3833
flag_management:
3934
default_rules:

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
- name: Build release distributions
3333
run: |
3434
uv build --wheel
35-
uv build --package codegen-git --wheel
3635
env:
3736
HATCH_BUILD_HOOKS_ENABLE: true
3837
- name: Upload distributions

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,20 @@ 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
6262
.venv
6363
graph-sitter-types/out/**
6464
graph-sitter-types/typings/**
65+
codegen-sdk/out/**
66+
codegen-sdk/typings/**
6567
coverage.json
6668
tests/verified_codemods/codemod_data/repo_commits.json
6769

6870
# =====[ Docs ]=====
6971
# These are auto-generated
7072
docs/api-reference/core/*
7173
docs/api-reference/python/*
72-
docs/api-reference/typescript/*
74+
docs/api-reference/typescript/*

.pre-commit-config.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33
fail_fast: true
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: v0.9.2
6+
rev: v0.9.3
77
hooks:
88
# Run the linter.
99
- id: ruff
@@ -63,22 +63,13 @@ repos:
6363
# - tomli
6464
# files: "codegen-backend/docs/.*/.*.mdx"
6565

66-
# - repo: "local"
67-
# hooks:
68-
# - id: clean-diffs
69-
# name: Clean codemod diffs
70-
# entry: bash -c "cd codegen-backend && poetry run cg codemod clean-diffs"
71-
# types: [file]
72-
# language: system
73-
# pass_filenames: false
74-
# files: "codegen-backend/codegen_tests/graph_sitter/codemod/.*/expected_diff.patch"
7566
- repo: https://github.com/fpgmaas/deptry.git
7667
rev: "0.22.0"
7768
hooks:
7869
- id: deptry
7970
pass_filenames: false
8071
always_run: true
81-
entry: bash -c "uv run --frozen --all-extras --dev deptry src codegen-git/src --ignore DEP001"
72+
entry: bash -c "uv run --frozen --all-extras --dev deptry src --ignore DEP001"
8273
- repo: "local"
8374
hooks:
8475
- id: disallowed-words-check

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@ source .venv/bin/activate
3434
uv sync --dev
3535
```
3636

37+
> [!TIP]
38+
> - If sync fails with `missing field 'version'`, you may need to delete lockfile and rerun `rm uv.lock && uv sync --dev`.
39+
> - If sync fails with failed compilation, you may need to install clang and rerun `uv sync --dev`.
40+
3741
### Running Tests
3842

3943
```bash
40-
# Unit tests
44+
# Unit tests (tests atomic functionality)
4145
uv run pytest tests/unit -n auto
4246

43-
# Codemod tests
47+
# Codemod tests (tests larger programs)
4448
uv run pytest tests/codemod/test_codemods.py -n auto
4549
```
4650

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
55
ENV GITHUB_WORKSPACE=/workspace
66
LABEL com.circleci.preserve-entrypoint=true
77
# RUN uv tool install keyring --with keyrings.codeartifact
8-
## Change the working directory to the `graph-sitter` directory
8+
## Change the working directory to the `codegen-sdk` directory
99
FROM base_uv AS install-tools
1010
RUN apt-get update && apt-get install -y build-essential curl git
1111
RUN curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
@@ -15,7 +15,7 @@ RUN corepack enable
1515
RUN --mount=type=cache,target=/root/.cache/uv uv pip install --system coverage
1616
RUN --mount=type=cache,target=/root/.cache/uv uv tool install codecov-cli --python 3.10
1717
RUN --mount=type=cache,target=/root/.cache/uv uv tool install pre-commit --with pre-commit-uv
18-
WORKDIR /graph-sitter
18+
WORKDIR /codegen-sdk
1919
ENTRYPOINT [ "uv", "run", "--frozen", "/bin/bash"]
2020
FROM install-tools AS base-image
2121
## Install dependencies
@@ -24,7 +24,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2424
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
2525
--mount=type=bind,source=hatch.toml,target=hatch.toml \
2626
uv sync --frozen --no-install-workspace --all-extras
27-
ADD . /graph-sitter
27+
ADD . /codegen-sdk
2828
## Sync the project
2929
RUN --mount=type=cache,target=/root/.cache/uv \
3030
uv sync --frozen --all-extras

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Graph sitter
1+
# Codegen
22

33
[![Documentation](https://img.shields.io/badge/docs-docs.codegen.com-blue)](https://docs.codegen.com)
44
[![Unit Tests](https://github.com/codegen-sh/codegen-sdk/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/codegen-sh/codegen-sdk/actions/workflows/unit-tests.yml)

codegen-git/pyproject.toml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)