Thank you for your interest in contributing to FastAPI Radar! We welcome contributions from the community.
-
Fork the repository
-
Clone your fork:
git clone https://github.com/your-username/fastapi-radar.git cd fastapi-radar -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -e ".[dev]" -
Build the dashboard:
cd fastapi_radar/dashboard npm install npm run build cd ../..
-
Create a new branch for your feature or fix:
git checkout -b feature/your-feature-name
-
Make your changes and test them with the example app:
python example_app.py
-
Run tests:
pytest
-
Format your code:
black fastapi_radar/ isort fastapi_radar/
-
Submit a pull request
- Follow PEP 8
- Use Black for formatting
- Use isort for import sorting
- Add type hints where appropriate
- Write docstrings for public functions and classes
The dashboard is built with React, TypeScript, and Vite:
cd fastapi_radar/dashboard
npm run dev # Start development server
npm run build # Build for production- Write tests for new features
- Ensure all tests pass before submitting PR
- Maintain or improve code coverage
- Use GitHub Issues for bug reports and feature requests
- Provide clear reproduction steps for bugs
- Include relevant system information
- Update documentation for any new features
- Ensure your branch is up to date with main
- Write clear commit messages
- Reference any related issues in your PR description
- Be responsive to code review feedback
By contributing, you agree that your contributions will be licensed under the MIT License.