Contributing
We welcome contributions to STAG. Here are some guidelines.
Development setup
git clone https://github.com/zerotonin/stag.git
cd stag
conda env create -f environment.yml
conda activate stag
pip install -e ".[dev,docs]"
Code style
We use ruff for linting and formatting,
configured in pyproject.toml. Docstrings follow the
NumPy style.
ruff check stag/ # lint
ruff format stag/ # format
Running tests
pytest tests/ -v
Pull requests
Fork the repository and create a feature branch.
Add tests for new functionality.
Ensure
ruff checkandpytestpass.Submit a pull request with a clear description.
Reporting issues
Please open a GitHub issue with a minimal reproducible example and the
output of python -c "import stag; print(stag.__version__)".