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:
git clone https://github.com/mihir20/codecriticAI
cd codecriticAI

2. Set up Python environment:

#### Using pyenv (Recommended)
```bash
# 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.3.tar.gz (7.9 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.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for codecriticai-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8ab8841ebe8b76fc85284dc8fd11b03f60d731f8e0d0f27ba1a102efbf77c392
MD5 baa6248b167bf5ff51fefb8cf6e1b035
BLAKE2b-256 4e51d38af830aa4cdabded7d6821cad1cf8ff483278e0343e4771a59d5449c65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codecriticai-0.0.3-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.0

File hashes

Hashes for codecriticai-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b2f57ce827f36b02fb9938427731b8060c6df15582986b41c5085d5f9788e10
MD5 1ec2d192ad24792983c1af7160225ff8
BLAKE2b-256 712396a1995acfc04cb5c5f9c5ebb70019273b252a1e982e6ae1c72a4d2384f4

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