Skip to content

feat: delete dead code (remove old deps) #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Jun 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d4a5a1f
.
jayhack Jun 29, 2025
a05f597
.
jayhack Jun 29, 2025
41088f8
deleted all the tests
jayhack Jun 29, 2025
27fd90b
removed cython configs etc.
jayhack Jun 29, 2025
f7cb4fc
.
jayhack Jun 29, 2025
e566d67
.
jayhack Jun 29, 2025
a0523e8
.
jayhack Jun 29, 2025
f76d963
Automated pre-commit update
jayhack Jun 29, 2025
b38521d
Automated pre-commit update
codegen-team Jun 29, 2025
a07dc47
Automated pre-commit update
codegen-team Jun 29, 2025
e0b94b1
Automated pre-commit update
codegen-team Jun 29, 2025
7c5abea
Automated pre-commit update
codegen-team Jun 29, 2025
084360f
Automated pre-commit update
codegen-team Jun 29, 2025
f49dd84
Automated pre-commit update
codegen-team Jun 29, 2025
f6f9c98
Automated pre-commit update
codegen-team Jun 29, 2025
0d5bd1c
Automated pre-commit update
codegen-team Jun 29, 2025
29ac6d0
Automated pre-commit update
codegen-team Jun 29, 2025
b3413f5
Automated pre-commit update
codegen-team Jun 29, 2025
553b968
Automated pre-commit update
codegen-team Jun 29, 2025
44d92b1
Automated pre-commit update
codegen-team Jun 29, 2025
ed651ba
Automated pre-commit update
codegen-team Jun 29, 2025
9cb462a
Automated pre-commit update
codegen-team Jun 29, 2025
ff6d52d
Merge branch 'develop' into jay/delete-dead-code
jayhack Jun 29, 2025
19d2349
Automated pre-commit update
jayhack Jun 29, 2025
d632115
Automated pre-commit update
codegen-team Jun 29, 2025
bde62fe
Automated pre-commit update
codegen-team Jun 29, 2025
16715a0
Automated pre-commit update
codegen-team Jun 29, 2025
9673bec
Automated pre-commit update
codegen-team Jun 29, 2025
9bb2457
.
jayhack Jun 29, 2025
b43a91f
Automated pre-commit update
codegen-team Jun 29, 2025
5627754
.
jayhack Jun 29, 2025
4d64cf2
.
jayhack Jun 29, 2025
38cc6a2
.
jayhack Jun 29, 2025
ee8ce27
.
jayhack Jun 29, 2025
c9575f0
.
jayhack Jun 29, 2025
09f5409
.
jayhack Jun 29, 2025
673d5ae
.
jayhack Jun 29, 2025
5767bce
.
jayhack Jun 29, 2025
7b9b5ce
.
jayhack Jun 29, 2025
73e811e
.
jayhack Jun 29, 2025
ef0f99b
.
jayhack Jun 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 0 additions & 15 deletions .codegen/.gitignore

This file was deleted.

44 changes: 0 additions & 44 deletions .codegen/codemods/no_link_backticks/no_link_backticks.py

This file was deleted.

19 changes: 0 additions & 19 deletions .codegen/codemods/test_language/test_language.py

This file was deleted.

18 changes: 0 additions & 18 deletions .codegen/codemods/update_loggers/update_loggers.py

This file was deleted.

23 changes: 4 additions & 19 deletions .github/actions/setup-oss-repos/action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
name: "Setup OSS repos"
description: "Setup OSS repos"
# TODO: add size filter
name: "Setup OSS repos (disabled)"
description: "OSS repos setup has been disabled"
runs:
using: "composite"
steps:
- name: Cache oss-repos
id: cache-oss-repos
uses: actions/cache@v4
with:
path: oss_repos
key: ${{ runner.os }}-repo-cache-2-${{hashFiles('codegen-backend/codegen_tests/graph_sitter/codemod/repos/open_source/*.json')}}
- name: Populate oss-repos if the cache is empty
if: steps.cache-oss-repos.outputs.cache-hit != 'true'
- name: Skip OSS repos setup
shell: bash
run: |
uv run --frozen python -m tests.shared.codemod.commands clone-repos --clean-cache
env:
GITHUB_WORKSPACE: $GITHUB_WORKSPACE
- name: Verify cache contents
shell: bash
run: ls -la $GITHUB_WORKSPACE/oss_repos/
run: echo "OSS repos setup is disabled"
11 changes: 6 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
- run: uv run --frozen pre-commit run --show-diff-on-failure --color=always --all-files --source ${{ github.event.pull_request.base.sha || github.event.before }} --origin ${{ github.event.pull_request.head.sha || github.event.after }}
shell: bash

- uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ always() && env.REPO_SCOPED_TOKEN && github.event_name == 'pull_request' }}
with:
commit_message: "Automated pre-commit update"
push_options: "--no-verify"
# Temporarily disabled to prevent infinite loop with version updates
# - uses: stefanzweifel/git-auto-commit-action@v5
# if: ${{ always() && env.REPO_SCOPED_TOKEN && github.event_name == 'pull_request' }}
# with:
# commit_message: "Automated pre-commit update"
# push_options: "--no-verify"
33 changes: 8 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,8 @@ permissions:

jobs:
build:
name: Build 3.${{ matrix.python }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
ubuntu-22.04-arm, # https://github.com/actions/partner-runner-images/issues/37 https://github.com/orgs/community/discussions/148648#discussioncomment-12099554
macos-latest,
macos-14-large
]
python: [
12,
13,
]

name: Build Pure Python Wheel
runs-on: ubuntu-latest
steps:
- name: Github context
env:
Expand All @@ -58,28 +44,25 @@ jobs:
uses: astral-sh/setup-uv@v5.4
id: setup-uv
with:
enable-cache: false
enable-cache: true
prune-cache: false
python-version: 3.${{ matrix.python }}
python-version: "3.12" # Use single Python version for building
version: '0.5.24'
cache-suffix: 3.${{ matrix.python }}

- name: Fetch tags
if: ${{ inputs.release-tag || startsWith(github.ref, 'refs/tags/') }}
run: |
git branch
git fetch --depth=1 origin +refs/tags/*:refs/tags/*

# TODO: add cbuildwheel cache
- name: Build wheel
uses: pypa/cibuildwheel@v2.23.3
env:
CIBW_BUILD: "*cp3${{ matrix.python }}*"
run: |
uv build --wheel --out-dir dist/

- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-3.${{ matrix.python }}
path: ./wheelhouse/*.whl
name: wheels
path: ./dist/*.whl

release:
if: ${{ inputs.release-tag || startsWith(github.ref, 'refs/tags/') }}
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,76 +99,7 @@ jobs:
env:
GITHUB_WORKSPACE: $GITHUB_WORKSPACE

parse-tests:
needs: access-check
if: contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest-32
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Cache oss-repos
uses: ./.github/actions/setup-oss-repos

- name: Install yarn and pnpm
run: |
npm install -g yarn &
npm install -g pnpm

- name: Test with pytest
timeout-minutes: 15
env:
GITHUB_WORKSPACE: $GITHUB_WORKSPACE
run: |
uv run pytest \
-n auto \
-o junit_suite_name="${{github.job}}" \
tests/integration/codemod/test_parse.py

- uses: ./.github/actions/report
with:
flag: no-flag
codecov_token: ${{ secrets.CODECOV_TOKEN }}

- name: Notify parse tests failure
uses: slackapi/slack-github-action@v2.1.0
if: failure() && github.event_name == 'push' && false
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ Parse Tests Failed",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Branch:* ${{ github.ref_name }}\n*Triggered by:* <${{ github.server_url }}/${{ github.actor }}|@${{ github.actor }}>\n\n*Details:*\n• <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Failed at <!date^${{ github.event.head_commit.timestamp }}^{date_num} {time}|just now>"
}
]
}
]
}

integration-tests:
needs: access-check
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ alembic_versions_backup
/.nvmrc
**/build/test-results/test/TEST*.xml
src/codegen/sdk/__init__.py
src/codegen/_version.py
src/**/*.html
.ccache/
uv-*.tar.gz
Expand Down
26 changes: 10 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
default_language_version:
python: python3.13
repos:

- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
Expand All @@ -24,12 +23,7 @@ repos:
- id: biome-check
language: node
additional_dependencies: ["@biomejs/biome@1.9.4"]
exclude: (src/codemods/eval)|(tests/unit/skills/snapshots)|(tests/unit/codegen/sdk/output)|(tests/integration/verified_codemods)|(docs/samples)
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.6
hooks:
- id: cython-lint
- id: double-quote-cython-strings
exclude: (src/codemods/eval)|(tests/unit/skills/snapshots)|(tests/unit/codegen/sdk/output)|(tests/integration/verified_codemods)|(docs/)

- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
Expand Down Expand Up @@ -88,13 +82,13 @@ repos:
args: ["--frozen", "--all-packages", "--all-extras"]

- repo: https://github.com/hukkin/mdformat
rev: 0.7.22 # Use the ref you want to point at
rev: 0.7.22 # Use the ref you want to point at
hooks:
- id: mdformat
language: python
# Optionally add plugins
additional_dependencies:
- mdformat-gfm
- mdformat-ruff
- mdformat-config
- mdformat-pyproject
- id: mdformat
language: python
# Optionally add plugins
additional_dependencies:
- mdformat-gfm
- mdformat-ruff
- mdformat-config
- mdformat-pyproject
38 changes: 0 additions & 38 deletions Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions architecture/1. plumbing/file-discovery.md

This file was deleted.

Loading
Loading