Skip to content

InformaticsMatters/squonk2-data-manager-workflow-engine

Repository files navigation

Informatics Matters Data Manager Workflow Engine

PyPI package (latest) Build Publish

A package that simplifies the validation and decoding of Data Manager Workflow definitions.

Installation (Python)

The Job decoder is published on PyPI and can be installed from there:

pip install im-data-manager-workflow-engine

Once installed you can validate the workflow definition (expected to be a dictionary formed from the definition YAML file) with:

>>> from workflow import decoder
>>> error: Optional[str] = decoder.validate_schema(workflow)

Contributing

The project's written in Python and uses Poetry for dependency and package management. We also use pre-commit to manage our pre-commit hooks, which rely on black, mypy, pylint, amongst others.

Create your environment:

poetry shell
poetry install --with dev
pre-commit install -t commit-msg -t pre-commit

And then start by running the pre-commit hooks to ensure you're stating with a _clean_ project:

pre-commit run --all-files

And then run the tests:

coverage run -m pytest
coverage report

Get in touch

  • Report bugs, suggest features or view the source code on GitHub.