A simple command-line-based code reviewer.
You need to create a virtual env and install the packages listed in requirements.txt
. You can then run Jupyter Notebooks in VS Code.
Follow these steps: How to Work with Python Virtual Environments, Jupyter Notebooks and VS Code.
You need to create a .env
file with your OPENAI_API_KEY
.
To run the CLI:
cd 03-automatic-code-reviewer/basic-code-reviewer
python3 reviewer.py tree.py
You can define the model you want to use:
python3 reviewer.py tree.py --model gpt-4
To run the CLI:
cd 03-automatic-code-reviewer/interactive-code-reviewer
python3 interactive_review.py sort.py
You can define the model you want to use:
python3 interactive_review.py sort.py --model gpt-4
You can quit by typing ctrl + C
(Mac) or cmd + C
(Windows).
- building a basic code reviewer.
- adding an interactive code reviewer.
Based on Mastering OpenAI Python APIs: Unleash the Power of GPT4 by Colt Steele (2023).