First off, thanks for considering to contribute to Cotton! 🎉
The following is a set of guidelines for contributing to Django Cotton (https://github.com/wrabit/django-cotton).
If you find a bug, please open an issue on GitHub with a clear description of the problem, steps to reproduce, and any relevant logs or screenshots.
We welcome suggestions for new features or improvements. Please open an issue on GitHub and describe your idea in detail.
- Fork the repository.
- Create a new branch (
git checkout -b your_feature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin your_feature
). - Open a pull request.
- Follow the existing code style and conventions.
- Write clear and descriptive commit messages.
- Include comments and documentation where necessary.
The development environment is set up using Docker. To build the project, run the following commands from the project root:
./dev/docker/bin/build.sh # add 'mac' if you're on ARM chip
./dev/docker/bin/run-dev.sh
Please ensure that your changes pass all existing tests and, if applicable, add new tests to cover your changes.
./dev/docker/bin/test.sh # append the test module path to test one module or test method
If you are ok to do it and you feel the feature you introduce or change requires documentation changes, please also make changes to the README.md and the docs project. Locally, developing the docs site requires you to:
./docs/docker/bin/build.sh # add 'mac' if you're on ARM chip
./docs/docker/bin/run-dev.sh
Thank you for contributing!