Explore projects
Pythonintermediateai
Automated Code Review Bot
Bot that receives a Git diff, analyzes style/complexity/security issues, and posts automated comments on GitHub PRs.
5 steps
Project steps
- 01
Diff Parsing
Parses unified diff to extract modified files and new lines.
- 02
AST Analysis
For Python files, analyzes the AST: functions with too many parameters, cyclomatic complexity (radon).
- 03
Security Patterns
Detects dangerous patterns: eval(), shell=True, hardcoded credentials with regex.
- 04
Style Check
Runs pyflakes and checks line length without installing pre-commit.
- 05
GitHub Comments
Posts inline review comments on PR via PyGithub with exact position in diff.
Recommended resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech stack
PythonpygmentsastradonPyGithub