This repo contains a simple Python application using MySQL to demonstrate PR reviews from SeniorDev.
This code implements a basic CRUD app with Python, MySQL, and FastAPI. It has APIs to:
- Get all items
- Add a new item
The goals are:
- Provide a sample Python codebase that uses a database
- Demonstrate PR reviews and automated feedback from SeniorDev
- Showcase best practices for Python, SQL, code quality
SeniorDev analyzes every PR opened against this repo. It provides automated reviews about:
- Code quality
- Security issues
- Performance problems
- Bug risks
- Style violations
- Documentation needs
The feedback from SeniorDev helps improve the overall code quality and developer skills.
- Clone the repo
- Create a virtualenv and install requirements
- Configure MySQL connection settings
- Run the application:
make run
-
API endpoints:
- GET /items - Get all items
- POST /items - Create new item
-
Open PRs with some sample changes to see SeniorDev reviews in action!
Pull requests are welcome! Open a PR to suggest improvements or fix bugs and watch as SeniorDev provides feedback. This repo is intended to demonstrate collaborative development workflows.
Want a review on your own codebase? Have a review in less than 5 minutes at SeniorDev.
This project is licensed under the MIT license. See LICENSE for more details.