Thank you for your interest in contributing! This project is designed for beginners, so do not hesitate to ask questions by opening an issue.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/<your-username>/fastapi-workshop.git cd fastapi-workshop
- Create a virtual environment and install dependencies:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt - Run the tests to make sure everything works:
pytest test/ -v
- Create a new branch for your work:
git checkout -b fix/issue-number-short-description
- Make your changes. Keep commits small and focused.
- Run the tests again to verify nothing is broken:
pytest test/ -v
- Commit with a clear message:
git commit -m "fix: short description of what you fixed (#issue-number)" - Push your branch:
git push origin fix/issue-number-short-description
- Open a Pull Request on GitHub against the
mainbranch.
- Follow PEP 8.
- Use type hints where possible.
- Add docstrings to public functions.
- Keep functions short and focused.
If you find a bug not covered by existing issues, please open a new issue with:
- A clear title
- Steps to reproduce
- Expected vs actual behavior
- The file and line number if you can find it
Be respectful and constructive. We are all here to learn.