Thank you for your interest in contributing to sphinx-needs-tree-map!
-
Clone the repository:
git clone https://github.com/patdhlk/sphinx-needs-tree-map.git cd sphinx-needs-tree-map -
Create a virtual environment and install dependencies:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e ".[dev,docs]"
-
Install pre-commit hooks:
pip install pre-commit pre-commit install
pytest tests/ -vWith coverage:
pytest tests/ -v --cov=sphinx_needs_tree_map --cov-report=htmlThis project uses:
- ruff for linting and formatting
- mypy for type checking
Run checks manually:
ruff check sphinx_needs_tree_map tests
ruff format sphinx_needs_tree_map tests
mypy sphinx_needs_tree_mapOr use pre-commit:
pre-commit run --all-filescd docs
make html
# Open _build/html/index.html- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Make your changes and add tests
- Ensure all tests pass and code style checks pass
- Commit with a clear message
- Push to your fork and create a Pull Request
- Include tests for new functionality
- Update documentation as needed
- Follow the existing code style
- Keep commits focused and atomic
- Reference any related issues
- Use the GitHub issue templates
- Include Sphinx and sphinx-needs versions
- Provide a minimal reproducible example when possible
By contributing, you agree that your contributions will be licensed under the MIT License.