Skip to content

Repository files navigation

transfo

Tests Documentation

Ergonomic in-memory transformations operations , using NGFF for read/write

Getting started

Please refer to the documentation, in particular, the API documentation.

Installation

You need to have Python 3.12 or newer installed on your system. If you don't have Python installed, we recommend installing uv.

There are several alternative options to install transfo:

  1. Install the latest development version:
pip install git+https://github.com/Spatial-Innovation-Team/transfo.git@main

Release notes

See the changelog.

Contact

For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.

Developer Guide

Development Environment

This project uses Hatch for managing development environment, for building and for testing. The development environment is configured to use .venv as the virtual environment directory and includes both dev and test dependency groups.

Setting up the Development Environment

To set up your development environment, run the following at repo root:

hatch run create-init-dev-env

This command will:

  1. If no environment exists: Create a virtual environment in .venv, install the package in development mode, install all development and test dependencies
  2. Install or update pre-commit hooks

Available Hatch Commands

Once your environment is set up, you can use the following commands:

Testing:

# Run tests
hatch run dev:test

# Run tests with coverage
hatch run dev:test-cov

Linting and Formatting:

# Run pre-commit on staged files
hatch run dev:lint-format-staged

# Run pre-commit on all files
hatch run dev:lint-format-all-files

# Install pre-commit hooks manually (if needed)
hatch run dev:pre-commit-install

Entering the Environment:

# Activate the virtual environment
hatch shell dev

Virtual Environment Location

The development environment is created in the .venv directory at the project root. This location is specified in the [tool.hatch.envs.dev] configuration in pyproject.toml.

Dependency Groups

The development environment includes two dependency groups:

  • dev: Development tools including pre-commit, prek, twine, and ty
  • test: Testing tools including pytest, coverage, and pytest-cov

Citation

t.b.a

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages