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
Release history Release notifications | RSS feed
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)
Built Distribution
autobot_ml-0.0.1-py3-none-any.whl
(15.0 kB
view hashes)
Close
Hashes for autobot_ml-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c79a0d8cb279aa4676e45660c9b7aa61158e78500736efe99c18c6125913380 |
|
MD5 | cb4bc6035a56ad978286e71b7ca26b9b |
|
BLAKE2b-256 | 30f543f176822f71574787d59cf59568a8a3e6c1dfdded86b47c88aae23009b5 |