Skip to content
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

Enable running codemodder as a library import #879

Merged
merged 8 commits into from
Oct 15, 2024

Conversation

clavedeluna
Copy link
Contributor

@clavedeluna clavedeluna commented Oct 15, 2024

Overview

Be able to run codemodder as a library API

Description

  • The README update explains what the result here is.
  • the testing additions are very minimal, since we already heavily unit test most of the functionality.

Additional Details

  • Later on we could have this kind of thing, but I don't think it's necessary now
import codemodder
context = CodemodExecutionContext("/path/to/my-project", dry_run=True, ...)
output, exit_code = codemodder.run(context)
  • later on we could also make import codemodder; codemodder.list() to match all CLI functionality.

/close #work

@clavedeluna clavedeluna marked this pull request as ready for review October 15, 2024 14:57
@clavedeluna clavedeluna changed the title Iss 2211/enable library call Enable running codemodder as a library import Oct 15, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@drdavella drdavella added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit 1361e68 Oct 15, 2024
13 checks passed
@drdavella drdavella deleted the iss-2211/enable-library-call branch October 15, 2024 17:52
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