Thanks for your interest in improving diversity-tsc. This document explains
the workflow we follow.
git clone https://github.com/javidan-abdullayev/diversity-tsc.git
cd diversity-tsc
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pre-commit install- Fork the repository and create a topic branch:
git checkout -b feat/short-description
- Make your changes. Keep commits focused and descriptive.
- Make sure the test suite, linter, and type-checker pass locally:
make lint make test make typecheck - Push and open a pull request against
maindescribing the motivation and the changes. Link to any related issues.
- Follow
ruffandruff format. Both run viapre-commitand CI. - Use type hints on all new public functions and classes.
- Write a docstring (NumPy style) for every public symbol.
- Keep lines ≤ 100 characters.
- Prefer pure functions for helpers; reserve classes for stateful components.
Place tests under tests/, mirroring the module path. Each new feature should
ship with at least one test. Use pytest fixtures over duplicated setup code.
Open an issue with:
- a minimal reproduction (ideally a
pytestsnippet), - the full traceback,
- your Python and PyTorch versions (
python -V && pip show torch).
Maintainers bump __version__ in src/diversity_tsc/_version.py, tag the
commit (vX.Y.Z), and let CI build the wheel.