An AI Code Review tool using OpenAI
Project description
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
- 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
- Install dependencies:
pip install -e .
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51cb18038f508bd536c18cd311a540457be1bd95e2509d78dc78a266eb4f0fe0
|
|
| MD5 |
456f1104ade42142cad52fcf87d2d4d3
|
|
| BLAKE2b-256 |
f16ab64cf662ec0e476ac0d90801d60e3a2006b67ae5ab90e15d9248944f92fb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b01525960c890ad40534203089194450ea774424299b581b8594bdff2183dd3b
|
|
| MD5 |
8daad4e6d1a8c9782bd6689a4053ecf5
|
|
| BLAKE2b-256 |
851b99f6e2eca250a81968fc14a35cc456dd46f53dfb9df1386002b750db3bb7
|