Skip to content

feat(CG-10367): from codegen import Codebase #55

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 7 commits into from
Jan 24, 2025
Merged

Conversation

jayhack
Copy link
Contributor

@jayhack jayhack commented Jan 24, 2025

Motivation

Content

Testing

Please check the following before marking your PR as ready for review

  • I have added tests for my changes
  • I have updated the documentation or added new documentation as needed
  • I have read and agree to the Contributor License Agreement

@jayhack jayhack requested a review from codegen-team as a code owner January 24, 2025 02:57
@jayhack jayhack merged commit e808eca into develop Jan 24, 2025
6 of 12 checks passed
@jayhack jayhack deleted the jay/docs-cleanup branch January 24, 2025 03:26
@christinewangcw christinewangcw changed the title feat: from codegen import Codebase feat(CG-10367): from codegen import Codebase Jan 24, 2025
Copy link

linear bot commented Jan 24, 2025

CG-10367 Support `from codegen import Codebase`

All of the following should be supported:

~$: pip install codegen
...

import codegen
from codegen import Codebase

codebase = Codebase('./')

codegen.function('delete-flags')
def run(codebase: Codebase):
    ...

jayhack added a commit that referenced this pull request Feb 9, 2025
# Motivation
<!-- Why is this change necessary? -->

# Content
<!-- Please include a summary of the change -->
# Testing
<!-- How was the change tested? -->
# Please check the following before marking your PR as ready for review

- [ ] I have added tests for my changes
- [ ] I have updated the documentation or added new documentation as
needed
- [ ] I have read and agree to the [Contributor License
Agreement](../CLA.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants