Skip to main content

An AI Code Review tool using OpenAI

Project description

🚀 CodeCriticAI

AI-Powered Code Review Tool

PyPI version PyPI downloads License: MIT Python 3.10+

CodeCriticAI is a tool for performing AI-powered code reviews using Git diffs. It leverages OpenAI's API to analyze code changes and generate detailed reviews.

Features

  • Analyzes code changes using Git diffs
  • Utilizes OpenAI's API for code review
  • Generates HTML reports of the code review

Requirements

  • Python 3.6+
  • OpenAI API key
  • Git

🚀 Quick Start

Installation

pip install codecriticai

💡 Check out codecriticai on PyPI for the latest version and release notes.

Configuration

# Linux/macOS
export OPENAI_API_KEY=your-api-key-here

# Windows (PowerShell)
$env:OPENAI_API_KEY="your-api-key-here"

📚 Usage

# Review current directory changes
codecriticai

# Review specific directory
codecriticai --dir /path/to/repo

# Compare with different base branch
codecriticai --base develop

## 🤝 Contributing

We love contributions! Here's how you can help:

### 🛠️ Development Setup

1. Clone the repository:
```bash
git clone https://github.com/mihir20/codecriticAI
cd codecriticAI
  1. Set up Python environment:

Using pyenv (Recommended)

# Install Python 3.13.0
pyenv install 3.13.0

# Create a virtual environment
pyenv virtualenv 3.13.0 codecriticAI-dev

# Activate the environment
pyenv activate codecriticAI-dev

Using venv (Alternative)

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -e .
  1. Run locally:
# Using Python module directly (recommended for development)
python -m codecriticAI.main --base main

# Or after installing in development mode
codecriticai --base main

💡 Note: Using pyenv is recommended as it provides better Python version management and isolation.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Show Your Support

If you find codecriticAI useful, please consider:

  • ⭐ Starring the repository
  • 🐛 Reporting issues
  • 🤝 Contributing to the code
  • 📢 Spreading the word

Made by Mihir Gandhi

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

codecriticai-0.0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codecriticai-0.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file codecriticai-0.0.2.tar.gz.

File metadata

  • Download URL: codecriticai-0.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for codecriticai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 51cb18038f508bd536c18cd311a540457be1bd95e2509d78dc78a266eb4f0fe0
MD5 456f1104ade42142cad52fcf87d2d4d3
BLAKE2b-256 f16ab64cf662ec0e476ac0d90801d60e3a2006b67ae5ab90e15d9248944f92fb

See more details on using hashes here.

File details

Details for the file codecriticai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: codecriticai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for codecriticai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b01525960c890ad40534203089194450ea774424299b581b8594bdff2183dd3b
MD5 8daad4e6d1a8c9782bd6689a4053ecf5
BLAKE2b-256 851b99f6e2eca250a81968fc14a35cc456dd46f53dfb9df1386002b750db3bb7

See more details on using hashes here.

Supported by

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