mirror of
https://github.com/tadata-org/fastapi_mcp.git
synced 2025-04-13 23:32:11 +03:00
1.9 KiB
1.9 KiB
Contributing to FastAPI-MCP
First off, thank you for considering contributing to FastAPI-MCP!
Development Process
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run the tests (
pytest) - Format your code (
black .andisort .) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Setting Up Development Environment
# Clone your fork
git clone https://github.com/tadata-org/fastapi_mcp
cd fastapi-mcp
# Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
Code Style
We use the following tools to ensure code quality:
- Black for code formatting
- isort for import sorting
- ruff for linting
- mypy for type checking
Please make sure your code passes all checks before submitting a pull request:
black .
isort .
ruff check .
mypy .
Testing
We use pytest for testing. Please write tests for any new features and ensure all tests pass:
pytest
Pull Request Process
- Ensure your code follows the style guidelines of the project
- Update the README.md with details of changes if applicable
- The versioning scheme we use is SemVer
- Include a descriptive commit message
- Your pull request will be merged once it's reviewed and approved
Code of Conduct
Please note we have a code of conduct, please follow it in all your interactions with the project.
- Be respectful and inclusive
- Be collaborative
- When disagreeing, try to understand why
- A diverse community is a strong community
Questions?
Don't hesitate to open an issue if you have any questions about contributing to FastAPI-MCP.