Contributing#
We welcome contributions to torch-secorder! This guide will help you get started.
Development Setup#
Fork the repository
Clone your fork:
git clone https://github.com/yourusername/torch-secorder.git
cd torch-secorder
Install development dependencies:
poetry install --with dev,docs
Make the changes: Fix the bugs 🐛, add features 🚀…
Run the checks before submitting:
poetry run pre-commit clean
poetry run pre-commit install --install-hooks
poetry run pre-commit run --all-files
Create a new branch:
git checkout -b feature/your-feature-name
Push code:
git push origin feature/your-feature-name
Request a PR: Provide a detailed comment for your Pull Request
Code Style#
We use: - Ruff for code linting & formatting - isort for import sorting - mypy for type checking - pytest for testing
Documentation#
Add docstrings to new functions/classes
Update relevant documentation files
Build and check the docs:
cd docs
poetry run make html
Pull Request Process#
Update the README.md with details of changes if needed
Update the documentation
Add tests for new functionality
Ensure all tests pass
Submit a pull request
Bug Reports#
When filing a bug report, please include:
A quick summary and/or background
Steps to reproduce - Be specific! - Give sample code if you can
What you expected would happen
What actually happens
Notes (possibly including why you think this might be happening, or stuff you tried that didn’t work)
Code of Conduct#
Please be respectful and considerate of others when contributing. We have adopted the Contributor Covenant as our Code of Conduct. Please read the full text in our CODE_OF_CONDUCT.md file.
For more detailed information about contributing, including our full Code of Conduct, please see our CONTRIBUTING.md file on GitHub.