Skip to main content

An automated code refactoring tool powered by GPT-3.

Project description

autobot

An automated code refactoring tool powered by GPT-3. Like GitHub Copilot, for your existing codebase.

Getting started

First, add a .env file to the root directory, with a structure like this:

OPENAI_ORGANIZATION=${YOUR_OPENAI_ORGANIZATION}
OPENAI_API_KEY=${YOUR_OPENAI_API_KEY}

Then, run poetry install.

Example usage

Removing useless object inheritance

python -m autobot useless_object_inheritance schematics/useless_object_inheritance/

Removing print statements

python -m autobot print_statement schematics/print_statement/

Rename self.assertEquals to self.assertEqual

python -m autobot assert_equals schematics/assert_equals/

Remove unnecessary f-strings

python -m autobot unnecessary_f_strings schematics/unnecessary_f_strings/

Migrating to standard library generics

python -m autobot standard_library_generics schematics/standard_library_generics/

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autobot-ml-0.0.1.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

autobot_ml-0.0.1-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page