Skip to content

sharmake-ibrahim/AI-Code-Reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AI Code Reviewer

An AI-powered tool that reviews your code and suggests improvements using Claude (Anthropic API).

Requirements

Installation

  1. Install dependencies:

    pip install anthropic python-dotenv
  2. Create a .env file in the project root:

    ANTHROPIC_API_KEY=your_api_key_here
    

Usage

Paste your code snippet into main.py and run:

python main.py

You can specify the programming language:

print(review_code(code_snippet, language="Python"))

Example Output

Code Review:
- Consider adding type hints to function parameters
- Add a docstring to describe what the function does
- Example improvement: def add(x: int, y: int) -> int:

Project Structure

AI-Code-Reviewer/
├── main.py        # Main script
├── .env           # API key (not committed)
├── .gitignore
└── README.md

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages