Skip to content

Commit b4a0c81

Browse files
author
Alan Christie
committed
feat: Updated README
1 parent 00075df commit b4a0c81

File tree

4 files changed

+105
-15
lines changed

4 files changed

+105
-15
lines changed

.pre-commit-config.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
minimum_pre_commit_version: 3.7.0
3+
4+
repos:
5+
6+
# commit-msg hooks
7+
# ----------
8+
9+
# Conventional Commit message checker (commitizen)
10+
- repo: https://github.com/commitizen-tools/commitizen
11+
rev: v3.21.3
12+
hooks:
13+
- id: commitizen
14+
stages:
15+
- commit-msg
16+
17+
# pre-commit hooks
18+
# ----------
19+
20+
# Standard pre-commit rules
21+
- repo: https://github.com/pre-commit/pre-commit-hooks
22+
rev: v4.1.0
23+
hooks:
24+
- id: check-case-conflict
25+
- id: check-docstring-first
26+
- id: check-executables-have-shebangs
27+
- id: check-shebang-scripts-are-executable
28+
- id: check-toml
29+
- id: detect-private-key
30+
- id: end-of-file-fixer
31+
- id: requirements-txt-fixer
32+
- id: trailing-whitespace
33+
args:
34+
- --markdown-linebreak-ext=md
35+
# Black (uncompromising) Python code formatter
36+
- repo: https://github.com/psf/black
37+
rev: 24.3.0
38+
hooks:
39+
- id: black
40+
args:
41+
- --target-version
42+
- py312
43+
# MyPy
44+
- repo: https://github.com/pre-commit/mirrors-mypy
45+
rev: v1.9.0
46+
hooks:
47+
- id: mypy
48+
files: ^workflow
49+
args:
50+
- --install-types
51+
- --non-interactive
52+
# YAML Lint
53+
- repo: https://github.com/adrienverge/yamllint
54+
rev: v1.35.1
55+
hooks:
56+
- id: yamllint
57+
# Pylint
58+
- repo: https://github.com/pycqa/pylint
59+
rev: v3.1.0
60+
hooks:
61+
- id: pylint
62+
name: pylint
63+
entry: pylint
64+
additional_dependencies:
65+
- jinja2==3.0.3
66+
- jsonschema >= 3.2.0, < 4.0
67+
- pyyaml >= 5.3.1, < 7.0
68+
files: ^workflow/.*\.py$

README.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Informatics Matters Data Manager Workflow Decoder
2+
=================================================
3+
4+
:target: https://badge.fury.io/py/im-data-manager-workflow-decoder
5+
:alt: PyPI package (latest)
6+
7+
.. image:: https://github.com/InformaticsMatters/squonk2-data-manager-workflow-decoder/actions/workflows/build.yaml/badge.svg
8+
:target: https://github.com/InformaticsMatters/squonk2-data-manager-workflow-decoder/actions/workflows/build.yaml
9+
:alt: Build
10+
11+
.. image:: https://github.com/InformaticsMatters/squonk2-data-manager-workflow-decoder/actions/workflows/publish.yaml/badge.svg
12+
:target: https://github.com/InformaticsMatters/squonk2-data-manager-workflow-decoder/actions/workflows/publish.yaml
13+
:alt: Publish
14+
15+
A package that simplifies the validation and decoding of Data Manager
16+
Workflow definitions.
17+
18+
## Installation (Python)
19+
The Job decoder is published on `PyPI`_ and can be installed from there:
20+
21+
pip install im-data-manager-workflow-decoder
22+
23+
Once installed you can validate the workflow definition (expected to be a dictionary
24+
formed from the definition YAML file) with:
25+
26+
>>> from workflow import decoder
27+
>>> error: Optional[str] = decoder.validate_schema(workflow)
28+
29+
.. _PyPI: https://pypi.org/project/im-data-manager-workflow-decoder
30+
31+
Get in touch
32+
============
33+
34+
- Report bugs, suggest features or view the source code `on GitHub`_.
35+
36+
.. _on GitHub: https://github.com/informaticsmatters/squonk2-data-manager-workflow-decoder

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "im-data-manager-workflow-decoder"
33
version = "0.1.0"
44
description = ""
55
authors = ["Alan Christie <[email protected]>"]
6-
readme = "README.md"
6+
readme = "README.rst"
77
packages = [
88
{ include = "workflow", from = "." }
99
]

0 commit comments

Comments
 (0)