Giter Site home page Giter Site logo

chatgpt-code-review's Introduction

ChatGPT Code Review

Open in Streamlit

ChatGPT Code Review is an app designed to help software developers improve their code quality by leveraging the power of OpenAI's large language models. The app analyzes the code in a given GitHub repository and provides recommendations to enhance the code. It is a valuable tool for developers, allowing them to discover potential issues in their codebase.

To use ChatGPT Code Review and get recommendations for your code, follow these steps:

  1. Access the app: Open the ChatGPT Code Review app in your web browser.
  2. Enter the GitHub repository URL: In the input field labeled "GitHub Repository URL", enter the URL of the repository you'd like to analyze.
  3. Enter your OpenAI API Key: In the input field labeled "OpenAI API Key", enter your OpenAI API key. If you don't have one, you can obtain it from the OpenAI platform.
  4. Select file extensions: Choose the file extensions you want to analyze or add additional extensions in the provided input field.
  5. Clone the repository: Click the "Clone Repository" button. The app will display the files available for analysis in a tree structure.
  6. Select files to analyze: Check the boxes next to the files you want to analyze, then click the "Analyze Files" button.
  7. Review the recommendations: The recommendations will be displayed in a clear and structured format, with code snippets and suggested improvements. Review these recommendations to identify potential areas for improvement in your code.

Keep in mind that ChatGPT Code Review is an AI-powered tool, and while it can provide helpful insights, it may not always be perfect. It is essential to use your judgment and expertise when assessing the recommendations provided by the app.

Example

example page

Installation and Usage

Here's how to install and use ChatGPT Code Review on your local machine:

  1. Clone the repository: Execute this on your local machine and navigate to the project directory:

    git clone https://github.com/domvwt/chatgpt-code-review.git
    cd chatgpt-code-review
  2. Set up a virtual environment: Run this command to establish a virtual environment:

    python3 -m venv .venv
  3. Switch on the virtual environment: Use the corresponding command to activate your virtual environment:

    source .venv/bin/activate  # Linux or macOS
    .venv\Scripts\activate  # Windows
  4. Deploy the application: Use this command to install the app and its dependencies:

    pip install -e .
  5. Launch the app: To get the app running, use this command:

    streamlit run chatgpt_code_review/app.py

chatgpt-code-review's People

Contributors

domvwt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.