Thank you for considering contributing to the Borsdata API Client! This document provides guidelines and instructions for contributing.
Please be respectful and considerate of others when contributing to this project.
- Fork the repository
- Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-nameorgit checkout -b fix/your-bugfix-name - Make your changes
- Run tests to ensure your changes don't break existing functionality:
pytest - Commit your changes with a descriptive commit message
- Push your branch to your fork:
git push origin your-branch-name - Create a pull request to the main repository
- Clone the repository
- Create a virtual environment:
python -m venv .venv - Activate the virtual environment:
- Windows:
.venv\Scripts\activate - Unix/MacOS:
source .venv/bin/activate
- Windows:
- Install development dependencies:
pip install -r requirements-dev.txt - Create a
.envfile with your Borsdata API key:BORSDATA_API_KEY=your_api_key_here
Run tests with pytest:
pytestFor coverage report:
pytest --cov=src/borsdata_client tests/This project follows PEP 8 style guidelines with a line length of 88 characters. We use Black for code formatting and isort for import sorting.
Format your code before submitting:
black src tests
isort src testsAll code should include proper type hints according to PEP 484.
Please update documentation when adding or modifying features. This includes:
- Docstrings for new functions, methods, and classes
- Updates to README.md if necessary
- New or updated examples in the docs directory
- Ensure your code passes all tests
- Update documentation if necessary
- The PR should work for Python 3.7 and above
- Your PR will be reviewed by maintainers, who may request changes
By contributing to this project, you agree that your contributions will be licensed under the project's MIT License.