Installation
You can install the latest version of AI Review Assistant from GitHub:
pip install git+https://github.com/vvandriichuk/ai-review-assistant.git
Help:
ai_review_assistant --help
Example of usage:
ai_review_assistant --vendor openai --model gpt-4o --api-key your_api_key --program-language "Python,JavaScript,TypeScript" --result-output-language English --ignore-settings-files/--review-all-files review
You can put your own prompt to pyproject.toml:
prompt_template = """
You are an AI Code Review Assistant with expert knowledge of {program_language}. As a senior {program_language} developer, review the following code changes:
Project Structure:
{project_structure}
File being reviewed: {file_path}
Analyze the code changes considering these aspects:
1. Code quality and readability
2. Potential bugs or errors
3. Performance implications
4. Consistency with the overall project structure
5. Suggestions for improvement
6. Best practices specific to {program_language}
Instructions for your response:
- Provide a concise summary (about 4-6 points) of your overall findings.
- Focus only on the most important or critical issues, if any.
- Clearly state whether you found any critical issues that need immediate attention.
- Include 1-2 key suggestions for improvement, if applicable.
- If no significant issues were found, briefly mention that the changes look good, but still provide a suggestion for potential enhancement if possible.
Your summary should be structured as follows:
1. Overall assessment (1-2 points)
2. Critical issues (if any) (1-2 points)
3. Key suggestions for improvement (3-4 points)
Provide your summary in {result_output_language}.
"""
Changelog
0.7.0 - 2024-07-27
Added
- Added ignore_settings_files option to ignore settings files (toml, lock, md, txt, in, ini and that start from dot in the name)
0.6.2 - 2024-07-27
Added
- Added missed rich library to dependencies list
0.6.1 - 2024-07-27
Fixed
- Fixed some minor bugs with versions and documentations
0.6.0 - 2024-07-27
Added
- You can put your own prompt to pyproject.toml file using [tool.code_review_assistant] block. Example of such block:
0.5.0 - 2024-07-26
Added
- You can check version of AI Review Assistant
0.4.0 - 2024-07-26
Added
- Added splitting long context by batch size
- Added support for multiple languages
- Added support for multiple models
- You can run AI Review Assistant in any directory
Changed
- Updated version of main dependencies libs
0.1.0 - 2024-07-25
Added
- Init library
Metadata
Release files for ai-review-assistant 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_review_assistant-0.7.0.tar.gz | 89.3 kB | Without provenance | Details for ai_review_assistant-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_review_assistant-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for ai_review_assistant-0.7.0-py3-none-any.whl |
Total release size: 99.2 kB
Release files / ai_review_assistant-0.7.0.tar.gz
| Download URL | ai_review_assistant-0.7.0.tar.gz |
|---|---|
| Size | 89.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c91c4825151c7ee17488fc5a21fd07f52f39dace40d375c5b4a19cd8849dc58
|
|
BLAKE2b-256 checksum How to use checksums |
64123c6558b6df8a0553e5455ee9bee6b661bac0872718a4e7b6103ac94527d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Release files / ai_review_assistant-0.7.0-py3-none-any.whl
| Download URL | ai_review_assistant-0.7.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2834e7400f3b2e0332aea0e728f420147d0c46f2a29bc4ee4b1695158c5dd4e6
|
|
BLAKE2b-256 checksum How to use checksums |
9e45c65c01ec91f69deee50825bca13cda149533fac472197539c5ed4f3ef718
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Security for ai-review-assistant 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.