Skip to content

Latest commit

 

History

History
 
 

03-automatic-code-reviewer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Automatic Code Reviewer

A simple command-line-based code reviewer.

Setup

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.

Usage

Basic Code Reviewer

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

Interactive Code Reviewer

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).

Features

  • 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).