Thank you for considering contributing to CNBC. We're thrilled you're here and want to ensure that your contribution process is as smooth and enjoyable as possible. Whether you're fixing a bug, adding a feature, or improving documentation, every contribution is valuable.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/your-username/cnbc.git
- Set up a virtual environment:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
- Install the development dependencies:
pip install -r requirements_dev.txt
- Create a new branch for your changes:
git checkout -b name-of-your-branch
- Make your changes. Add tests if you're adding code, and make sure all tests pass.
- Install the package locally and ensure the package functions properly.
- Follow the coding standards and guidelines described in the next section.
- Follow PEP 8 - This is the style guide for Python code. Use tools like
pylint
to check your code. - Write meaningful commit messages - Describe what your changes do and why.
- Include tests - Your contributions should pass all tests. Add new tests for new features.
- Push your changes to your fork:
git push origin name-of-your-branch
- Submit a pull request through the GitHub website using your branch. Link the issue you're addressing, if applicable.
- Review and address comments - Maintainers might suggest changes. Discuss, revise, and push the necessary commits to your branch.
- Once approved, a project maintainer will merge your changes.
Before creating a new issue, please check if it has already been reported. If you're reporting a bug, include detailed steps to reproduce, the expected outcome, and the actual outcome.
If you have any questions or need further guidance, feel free to open an issue for discussion.