Development Setup¶
This guide will help you set up your development environment for contributing to DRF Toolkit.
Prerequisites¶
- Python 3.9 or higher
- pip (Python package installer)
- Git
Setting Up Your Development Environment¶
-
Clone the repository:
git clone https://github.com/flamingo-run/drf-toolkit.git cd drf-toolkit
-
Create a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate
-
Install development dependencies:
make dependencies
Running Tests¶
To run the test suite:
make test # Run all checks including linting and unit tests
make unit # Run only unit tests
Code Style¶
We use ruff for code formatting and linting.
To check your code:
make lint # Check code style
To automatically format your code:
make style # Apply code style fixes
Documentation¶
To build and serve the documentation locally:
mkdocs serve
Then visit http://127.0.0.1:8000 in your web browser.
Making Changes¶
-
Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Make your changes and ensure all tests pass
- Update documentation if necessary
- Submit a pull request
For more detailed information about contributing, please see our Contributing Guide.