analysis-workflow-viewer 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- analysis_workflow_viewer-0.1.0/.codecov.yaml +17 -0
- analysis_workflow_viewer-0.1.0/.cruft.json +44 -0
- analysis_workflow_viewer-0.1.0/.editorconfig +15 -0
- analysis_workflow_viewer-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +93 -0
- analysis_workflow_viewer-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
- analysis_workflow_viewer-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
- analysis_workflow_viewer-0.1.0/.github/dependabot.yml +12 -0
- analysis_workflow_viewer-0.1.0/.github/workflows/build.yaml +30 -0
- analysis_workflow_viewer-0.1.0/.github/workflows/release.yaml +33 -0
- analysis_workflow_viewer-0.1.0/.github/workflows/test.yaml +111 -0
- analysis_workflow_viewer-0.1.0/.gitignore +26 -0
- analysis_workflow_viewer-0.1.0/.pre-commit-config.yaml +46 -0
- analysis_workflow_viewer-0.1.0/.readthedocs.yaml +16 -0
- analysis_workflow_viewer-0.1.0/CHANGELOG.md +18 -0
- analysis_workflow_viewer-0.1.0/LICENSE +21 -0
- analysis_workflow_viewer-0.1.0/PKG-INFO +93 -0
- analysis_workflow_viewer-0.1.0/README.md +53 -0
- analysis_workflow_viewer-0.1.0/biome.jsonc +20 -0
- analysis_workflow_viewer-0.1.0/docs/_static/.gitkeep +0 -0
- analysis_workflow_viewer-0.1.0/docs/_static/css/custom.css +4 -0
- analysis_workflow_viewer-0.1.0/docs/_templates/.gitkeep +0 -0
- analysis_workflow_viewer-0.1.0/docs/api.md +14 -0
- analysis_workflow_viewer-0.1.0/docs/changelog.md +3 -0
- analysis_workflow_viewer-0.1.0/docs/conf.py +137 -0
- analysis_workflow_viewer-0.1.0/docs/contributing.md +347 -0
- analysis_workflow_viewer-0.1.0/docs/index.md +14 -0
- analysis_workflow_viewer-0.1.0/docs/references.bib +10 -0
- analysis_workflow_viewer-0.1.0/docs/references.md +5 -0
- analysis_workflow_viewer-0.1.0/pyproject.toml +142 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/__init__.py +9 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/about.py +101 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/cli.py +39 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/repo.py +262 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/server.py +83 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/app.js +935 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/index.html +36 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/style.css +366 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/vendor/cytoscape.LICENSE +19 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/vendor/cytoscape.min.js +32 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/vendor/dagre.LICENSE +19 -0
- analysis_workflow_viewer-0.1.0/src/analysis_workflow_viewer/static/vendor/dagre.min.js +3809 -0
- analysis_workflow_viewer-0.1.0/tests/test_viewer.py +214 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Based on pydata/xarray
|
|
2
|
+
codecov:
|
|
3
|
+
require_ci_to_pass: no
|
|
4
|
+
|
|
5
|
+
coverage:
|
|
6
|
+
status:
|
|
7
|
+
project:
|
|
8
|
+
default:
|
|
9
|
+
# Require 1% coverage, i.e., always succeed
|
|
10
|
+
target: 1
|
|
11
|
+
patch: false
|
|
12
|
+
changes: false
|
|
13
|
+
|
|
14
|
+
comment:
|
|
15
|
+
layout: diff, flags, files
|
|
16
|
+
behavior: once
|
|
17
|
+
require_base: no
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "https://github.com/scverse/cookiecutter-scverse",
|
|
3
|
+
"commit": "6518dfa1abde7379ea7255daf0ce09c23f2b4c94",
|
|
4
|
+
"checkout": "v0.8.0",
|
|
5
|
+
"context": {
|
|
6
|
+
"cookiecutter": {
|
|
7
|
+
"project_name": "analysis-workflow-viewer",
|
|
8
|
+
"package_name": "analysis_workflow_viewer",
|
|
9
|
+
"project_description": "An interactive viewer for the lineage that analysis-workflow records: click a file or a store key, follow the tasks it rests on.",
|
|
10
|
+
"author_full_name": "quadbio",
|
|
11
|
+
"author_email": "placeholder@example.com",
|
|
12
|
+
"github_user": "quadbio",
|
|
13
|
+
"github_repo": "analysis-workflow-viewer",
|
|
14
|
+
"license": "MIT License",
|
|
15
|
+
"ide_integration": false,
|
|
16
|
+
"issue_categorization": "labels",
|
|
17
|
+
"_copy_without_render": [
|
|
18
|
+
".github/workflows/build.yaml",
|
|
19
|
+
".github/workflows/test.yaml",
|
|
20
|
+
"docs/_templates/autosummary/**.rst"
|
|
21
|
+
],
|
|
22
|
+
"_exclude_on_template_update": [
|
|
23
|
+
"CHANGELOG.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md",
|
|
26
|
+
"docs/api.md",
|
|
27
|
+
"docs/index.md",
|
|
28
|
+
"docs/notebooks/example.ipynb",
|
|
29
|
+
"docs/references.bib",
|
|
30
|
+
"docs/references.md",
|
|
31
|
+
"src/**",
|
|
32
|
+
"tests/**"
|
|
33
|
+
],
|
|
34
|
+
"_render_devdocs": false,
|
|
35
|
+
"_jinja2_env_vars": {
|
|
36
|
+
"lstrip_blocks": true,
|
|
37
|
+
"trim_blocks": true
|
|
38
|
+
},
|
|
39
|
+
"_template": "https://github.com/scverse/cookiecutter-scverse",
|
|
40
|
+
"_commit": "6518dfa1abde7379ea7255daf0ce09c23f2b4c94"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"directory": null
|
|
44
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
|
|
11
|
+
[{*.{yml,yaml,toml},.cruft.json}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
[Makefile]
|
|
15
|
+
indent_style = tab
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report something that is broken or incorrect
|
|
3
|
+
labels: bug
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
|
|
9
|
+
detailing how to provide the necessary information for us to reproduce your bug. In brief:
|
|
10
|
+
* Please provide exact steps how to reproduce the bug in a clean Python environment.
|
|
11
|
+
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
|
|
12
|
+
* Replicate problems on public datasets or share data subsets when full sharing isn't possible.
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: report
|
|
16
|
+
attributes:
|
|
17
|
+
label: Report
|
|
18
|
+
description: A clear and concise description of what the bug is.
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: versions
|
|
24
|
+
attributes:
|
|
25
|
+
label: Versions
|
|
26
|
+
description: |
|
|
27
|
+
Which version of packages.
|
|
28
|
+
|
|
29
|
+
Please install `session-info2`, run the following command in a notebook,
|
|
30
|
+
click the “Copy as Markdown” button, then paste the results into the text box below.
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
In[1]: import session_info2; session_info2.session_info(dependencies=True)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Alternatively, run this in a console:
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
>>> import session_info2; print(session_info2.session_info(dependencies=True)._repr_mimebundle_()["text/markdown"])
|
|
40
|
+
```
|
|
41
|
+
render: python
|
|
42
|
+
placeholder: |
|
|
43
|
+
anndata 0.11.3
|
|
44
|
+
---- ----
|
|
45
|
+
charset-normalizer 3.4.1
|
|
46
|
+
coverage 7.7.0
|
|
47
|
+
psutil 7.0.0
|
|
48
|
+
dask 2024.7.1
|
|
49
|
+
jaraco.context 5.3.0
|
|
50
|
+
numcodecs 0.15.1
|
|
51
|
+
jaraco.functools 4.0.1
|
|
52
|
+
Jinja2 3.1.6
|
|
53
|
+
sphinxcontrib-jsmath 1.0.1
|
|
54
|
+
sphinxcontrib-htmlhelp 2.1.0
|
|
55
|
+
toolz 1.0.0
|
|
56
|
+
session-info2 0.1.2
|
|
57
|
+
PyYAML 6.0.2
|
|
58
|
+
llvmlite 0.44.0
|
|
59
|
+
scipy 1.15.2
|
|
60
|
+
pandas 2.2.3
|
|
61
|
+
sphinxcontrib-devhelp 2.0.0
|
|
62
|
+
h5py 3.13.0
|
|
63
|
+
tblib 3.0.0
|
|
64
|
+
setuptools-scm 8.2.0
|
|
65
|
+
more-itertools 10.3.0
|
|
66
|
+
msgpack 1.1.0
|
|
67
|
+
sparse 0.15.5
|
|
68
|
+
wrapt 1.17.2
|
|
69
|
+
jaraco.collections 5.1.0
|
|
70
|
+
numba 0.61.0
|
|
71
|
+
pyarrow 19.0.1
|
|
72
|
+
pytz 2025.1
|
|
73
|
+
MarkupSafe 3.0.2
|
|
74
|
+
crc32c 2.7.1
|
|
75
|
+
sphinxcontrib-qthelp 2.0.0
|
|
76
|
+
sphinxcontrib-serializinghtml 2.0.0
|
|
77
|
+
zarr 2.18.4
|
|
78
|
+
asciitree 0.3.3
|
|
79
|
+
six 1.17.0
|
|
80
|
+
sphinxcontrib-applehelp 2.0.0
|
|
81
|
+
numpy 2.1.3
|
|
82
|
+
cloudpickle 3.1.1
|
|
83
|
+
sphinxcontrib-bibtex 2.6.3
|
|
84
|
+
natsort 8.4.0
|
|
85
|
+
jaraco.text 3.12.1
|
|
86
|
+
setuptools 76.1.0
|
|
87
|
+
Deprecated 1.2.18
|
|
88
|
+
packaging 24.2
|
|
89
|
+
python-dateutil 2.9.0.post0
|
|
90
|
+
---- ----
|
|
91
|
+
Python 3.13.2 | packaged by conda-forge | (main, Feb 17 2025, 14:10:22) [GCC 13.3.0]
|
|
92
|
+
OS Linux-6.11.0-109019-tuxedo-x86_64-with-glibc2.39
|
|
93
|
+
Updated 2025-03-18 15:47
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a new feature for analysis-workflow-viewer
|
|
3
|
+
labels: enhancement
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: Description of feature
|
|
9
|
+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Check Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
package:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
with:
|
|
22
|
+
filter: blob:none
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
persist-credentials: false
|
|
25
|
+
- name: Install uv
|
|
26
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
27
|
+
- name: Build package
|
|
28
|
+
run: uv build
|
|
29
|
+
- name: Check package
|
|
30
|
+
run: uvx twine check --strict dist/*.whl
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
|
|
8
|
+
permissions: {}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release:
|
|
12
|
+
name: Upload release to PyPI
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment:
|
|
15
|
+
name: pypi
|
|
16
|
+
url: https://pypi.org/p/analysis_workflow_viewer
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
with:
|
|
23
|
+
filter: blob:none
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
- name: Install uv
|
|
27
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
28
|
+
with:
|
|
29
|
+
enable-cache: false
|
|
30
|
+
- name: Build package
|
|
31
|
+
run: uv build
|
|
32
|
+
- name: Publish package distributions to PyPI
|
|
33
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "0 5 1,15 * *"
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
# Get the test environment from hatch as defined in pyproject.toml.
|
|
20
|
+
# This ensures that the pyproject.toml is the single point of truth for test definitions and the same tests are
|
|
21
|
+
# run locally and on continuous integration.
|
|
22
|
+
# Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for
|
|
23
|
+
# more details.
|
|
24
|
+
get-environments:
|
|
25
|
+
runs-on: ubuntu-slim
|
|
26
|
+
outputs:
|
|
27
|
+
envs: ${{ steps.get-envs.outputs.envs }}
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
30
|
+
with:
|
|
31
|
+
filter: blob:none
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
persist-credentials: false
|
|
34
|
+
- name: Install uv
|
|
35
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
36
|
+
- name: Get test environments
|
|
37
|
+
id: get-envs
|
|
38
|
+
run: |
|
|
39
|
+
ENVS_JSON=$(uvx hatch env show --json | jq -c 'to_entries
|
|
40
|
+
| map(
|
|
41
|
+
select(.key | startswith("hatch-test"))
|
|
42
|
+
| {
|
|
43
|
+
name: .key,
|
|
44
|
+
label: (if (.key | contains("pre")) then .key + " (PRE-RELEASE DEPENDENCIES)" else .key end),
|
|
45
|
+
python: .value.python
|
|
46
|
+
}
|
|
47
|
+
)')
|
|
48
|
+
echo "envs=${ENVS_JSON}" | tee $GITHUB_OUTPUT
|
|
49
|
+
|
|
50
|
+
# Run tests through hatch. Spawns a separate runner for each environment defined in the hatch matrix obtained above.
|
|
51
|
+
test:
|
|
52
|
+
needs: get-environments
|
|
53
|
+
permissions:
|
|
54
|
+
id-token: write # for codecov OIDC
|
|
55
|
+
contents: read
|
|
56
|
+
|
|
57
|
+
strategy:
|
|
58
|
+
fail-fast: false
|
|
59
|
+
matrix:
|
|
60
|
+
os: [ubuntu-latest]
|
|
61
|
+
env: ${{ fromJSON(needs.get-environments.outputs.envs) }}
|
|
62
|
+
|
|
63
|
+
name: ${{ matrix.env.label }}
|
|
64
|
+
runs-on: ${{ matrix.os }}
|
|
65
|
+
continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails
|
|
66
|
+
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
69
|
+
with:
|
|
70
|
+
filter: blob:none
|
|
71
|
+
fetch-depth: 0
|
|
72
|
+
persist-credentials: false
|
|
73
|
+
- name: Install uv
|
|
74
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
75
|
+
with:
|
|
76
|
+
python-version: ${{ matrix.env.python }}
|
|
77
|
+
- name: create hatch environment
|
|
78
|
+
run: uvx hatch env create ${{ matrix.env.name }}
|
|
79
|
+
- name: list all all installed package versions
|
|
80
|
+
run: uvx hatch run ${{ matrix.env.name }}:uv pip list
|
|
81
|
+
- name: run tests using hatch
|
|
82
|
+
env:
|
|
83
|
+
MPLBACKEND: agg
|
|
84
|
+
PLATFORM: ${{ matrix.os }}
|
|
85
|
+
DISPLAY: :42
|
|
86
|
+
run: uvx hatch run ${{ matrix.env.name }}:run-cov -v --color=yes -n auto
|
|
87
|
+
- name: generate coverage report
|
|
88
|
+
run: |
|
|
89
|
+
# See https://coverage.readthedocs.io/page/config.html#run-patch
|
|
90
|
+
test -f .coverage || uvx hatch run ${{ matrix.env.name }}:cov-combine
|
|
91
|
+
uvx hatch run ${{ matrix.env.name }}:cov-report # report visibly
|
|
92
|
+
uvx hatch run ${{ matrix.env.name }}:coverage xml # create report for upload
|
|
93
|
+
- name: Upload coverage
|
|
94
|
+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
|
|
95
|
+
with:
|
|
96
|
+
fail_ci_if_error: true
|
|
97
|
+
use_oidc: true
|
|
98
|
+
|
|
99
|
+
# Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
|
|
100
|
+
# protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
|
|
101
|
+
check:
|
|
102
|
+
name: Tests pass in all hatch environments
|
|
103
|
+
if: always()
|
|
104
|
+
needs:
|
|
105
|
+
- get-environments
|
|
106
|
+
- test
|
|
107
|
+
runs-on: ubuntu-latest
|
|
108
|
+
steps:
|
|
109
|
+
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
110
|
+
with:
|
|
111
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Temp files
|
|
2
|
+
.DS_Store
|
|
3
|
+
*~
|
|
4
|
+
buck-out/
|
|
5
|
+
|
|
6
|
+
# IDEs
|
|
7
|
+
/.idea/
|
|
8
|
+
/.vscode/
|
|
9
|
+
|
|
10
|
+
# Compiled files
|
|
11
|
+
.venv/
|
|
12
|
+
__pycache__/
|
|
13
|
+
.*cache/
|
|
14
|
+
|
|
15
|
+
# Distribution / packaging
|
|
16
|
+
/dist/
|
|
17
|
+
|
|
18
|
+
# Tests and coverage
|
|
19
|
+
/data/
|
|
20
|
+
/node_modules/
|
|
21
|
+
/.coverage*
|
|
22
|
+
|
|
23
|
+
# docs
|
|
24
|
+
/docs/generated/
|
|
25
|
+
/docs/_build/
|
|
26
|
+
.claude/worktrees/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
fail_fast: false
|
|
2
|
+
default_language_version:
|
|
3
|
+
python: python3
|
|
4
|
+
default_stages:
|
|
5
|
+
- pre-commit
|
|
6
|
+
- pre-push
|
|
7
|
+
minimum_pre_commit_version: 2.16.0
|
|
8
|
+
# Vendored libraries stay as published.
|
|
9
|
+
exclude: ^src/analysis_workflow_viewer/static/vendor/
|
|
10
|
+
repos:
|
|
11
|
+
- repo: https://github.com/biomejs/pre-commit
|
|
12
|
+
rev: v2.5.3
|
|
13
|
+
hooks:
|
|
14
|
+
- id: biome-format
|
|
15
|
+
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
|
|
16
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
17
|
+
rev: v2.25.3
|
|
18
|
+
hooks:
|
|
19
|
+
- id: pyproject-fmt
|
|
20
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
21
|
+
rev: v0.15.21
|
|
22
|
+
hooks:
|
|
23
|
+
- id: ruff-check
|
|
24
|
+
types_or: [python, pyi, jupyter]
|
|
25
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
26
|
+
- id: ruff-format
|
|
27
|
+
types_or: [python, pyi, jupyter]
|
|
28
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
29
|
+
rev: v6.0.0
|
|
30
|
+
hooks:
|
|
31
|
+
- id: detect-private-key
|
|
32
|
+
- id: check-ast
|
|
33
|
+
- id: end-of-file-fixer
|
|
34
|
+
- id: mixed-line-ending
|
|
35
|
+
args: [--fix=lf]
|
|
36
|
+
- id: trailing-whitespace
|
|
37
|
+
- id: check-case-conflict
|
|
38
|
+
# Check that there are no merge conflicts (could be generated by template sync)
|
|
39
|
+
- id: check-merge-conflict
|
|
40
|
+
args: [--assume-in-merge]
|
|
41
|
+
|
|
42
|
+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
43
|
+
rev: v1.24.1
|
|
44
|
+
hooks:
|
|
45
|
+
- id: zizmor
|
|
46
|
+
args: [--no-progress, --fix]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# https://docs.readthedocs.io/page/config-file/v2.html
|
|
2
|
+
version: 2
|
|
3
|
+
build:
|
|
4
|
+
os: ubuntu-24.04
|
|
5
|
+
tools:
|
|
6
|
+
python: "3.14"
|
|
7
|
+
nodejs: latest
|
|
8
|
+
jobs:
|
|
9
|
+
create_environment:
|
|
10
|
+
- asdf plugin add uv
|
|
11
|
+
- asdf install uv latest
|
|
12
|
+
- asdf global uv latest
|
|
13
|
+
build:
|
|
14
|
+
html:
|
|
15
|
+
- uvx hatch run docs:build
|
|
16
|
+
- mv docs/_build $READTHEDOCS_OUTPUT
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog][],
|
|
6
|
+
and this project adheres to [Semantic Versioning][].
|
|
7
|
+
|
|
8
|
+
[keep a changelog]: https://keepachangelog.com/
|
|
9
|
+
[semantic versioning]: https://semver.org/
|
|
10
|
+
|
|
11
|
+
## [0.1.0] - 2026-11-30
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `analysis-workflow-viewer`: a local server and page for an analysis repo's lineage. A file explorer marks
|
|
16
|
+
what can be traced; a click draws the tasks a file or store key rests on; task cards show a task's metadata,
|
|
17
|
+
inputs and outputs, edge cards what one task passed to another, and each artifact unfolds into its kind,
|
|
18
|
+
shape and size.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, quadbio
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: analysis-workflow-viewer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An interactive viewer for the lineage that analysis-workflow records.
|
|
5
|
+
Project-URL: Documentation, https://analysis-workflow-viewer.readthedocs.io/
|
|
6
|
+
Project-URL: Homepage, https://github.com/quadbio/analysis-workflow-viewer
|
|
7
|
+
Project-URL: Source, https://github.com/quadbio/analysis-workflow-viewer
|
|
8
|
+
Author: quadbio
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026, quadbio
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
35
|
+
Requires-Python: >=3.12
|
|
36
|
+
Requires-Dist: analysis-workflow>=0.15.2
|
|
37
|
+
Requires-Dist: anndata[lazy]
|
|
38
|
+
Requires-Dist: session-info2
|
|
39
|
+
Description-Content-Type: text/markdown
|
|
40
|
+
|
|
41
|
+
# analysis-workflow-viewer
|
|
42
|
+
|
|
43
|
+
[![Tests][badge-tests]][tests]
|
|
44
|
+
[![Documentation][badge-docs]][documentation]
|
|
45
|
+
|
|
46
|
+
[badge-tests]: https://img.shields.io/github/actions/workflow/status/quadbio/analysis-workflow-viewer/test.yaml?branch=main
|
|
47
|
+
[badge-docs]: https://app.readthedocs.org/projects/analysis-workflow-viewer/badge/
|
|
48
|
+
|
|
49
|
+
An interactive viewer for the lineage that [analysis-workflow](https://github.com/quadbio/analysis-workflow)
|
|
50
|
+
records in an analysis repo. Browse the repo's files; click one a task made, or a key of a shared store, and see
|
|
51
|
+
the tasks it rests on as a graph. Click a task for its date, author, id, opening sentence and what it consumed from
|
|
52
|
+
outside; click an arrow for exactly which files and keys one task took from the other.
|
|
53
|
+
|
|
54
|
+
It is optional: analysis-workflow runs without it, and it adds nothing to an analysis repo's environment.
|
|
55
|
+
|
|
56
|
+
## Use
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
uv tool install git+https://github.com/quadbio/analysis-workflow-viewer.git
|
|
60
|
+
cd <analysis repo>
|
|
61
|
+
analysis-workflow-viewer # serves http://127.0.0.1:8765/ and opens it; --port, --no-open
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
In a VS Code remote terminal, tmux in it included, the page opens on your own machine: VS Code's `$BROWSER`
|
|
65
|
+
helper forwards the port, as it does for `cirro launch`. Elsewhere, forward the port and open the address. Every click reads the
|
|
66
|
+
repo afresh, so the view follows the analysis as it moves on, and nothing is written. Files are listed from the
|
|
67
|
+
main checkout, where shared data and task outputs are, together with the checkout it is started in.
|
|
68
|
+
|
|
69
|
+
The trace is `analysis_workflow.trace`'s: a task's `inputs.yaml` says what it consumed, a store's records say
|
|
70
|
+
which task wrote each key. A file or key that is grey has nothing to trace.
|
|
71
|
+
|
|
72
|
+
## Release notes
|
|
73
|
+
|
|
74
|
+
See the [changelog][].
|
|
75
|
+
|
|
76
|
+
## Contact
|
|
77
|
+
|
|
78
|
+
For questions and help requests, you can reach out in the [scverse discourse][].
|
|
79
|
+
If you found a bug, please use the [issue tracker][].
|
|
80
|
+
|
|
81
|
+
## Citation
|
|
82
|
+
|
|
83
|
+
> t.b.a
|
|
84
|
+
|
|
85
|
+
[uv]: https://github.com/astral-sh/uv
|
|
86
|
+
[scverse discourse]: https://discourse.scverse.org/
|
|
87
|
+
[issue tracker]: https://github.com/quadbio/analysis-workflow-viewer/issues
|
|
88
|
+
[tests]: https://github.com/quadbio/analysis-workflow-viewer/actions/workflows/test.yaml
|
|
89
|
+
[documentation]: https://analysis-workflow-viewer.readthedocs.io
|
|
90
|
+
[changelog]: https://analysis-workflow-viewer.readthedocs.io/page/changelog.html
|
|
91
|
+
[api documentation]: https://analysis-workflow-viewer.readthedocs.io/page/api.html
|
|
92
|
+
[pypi]: https://pypi.org/project/analysis-workflow-viewer
|
|
93
|
+
[venv]: https://docs.python.org/3/tutorial/venv.html
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# analysis-workflow-viewer
|
|
2
|
+
|
|
3
|
+
[![Tests][badge-tests]][tests]
|
|
4
|
+
[![Documentation][badge-docs]][documentation]
|
|
5
|
+
|
|
6
|
+
[badge-tests]: https://img.shields.io/github/actions/workflow/status/quadbio/analysis-workflow-viewer/test.yaml?branch=main
|
|
7
|
+
[badge-docs]: https://app.readthedocs.org/projects/analysis-workflow-viewer/badge/
|
|
8
|
+
|
|
9
|
+
An interactive viewer for the lineage that [analysis-workflow](https://github.com/quadbio/analysis-workflow)
|
|
10
|
+
records in an analysis repo. Browse the repo's files; click one a task made, or a key of a shared store, and see
|
|
11
|
+
the tasks it rests on as a graph. Click a task for its date, author, id, opening sentence and what it consumed from
|
|
12
|
+
outside; click an arrow for exactly which files and keys one task took from the other.
|
|
13
|
+
|
|
14
|
+
It is optional: analysis-workflow runs without it, and it adds nothing to an analysis repo's environment.
|
|
15
|
+
|
|
16
|
+
## Use
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
uv tool install git+https://github.com/quadbio/analysis-workflow-viewer.git
|
|
20
|
+
cd <analysis repo>
|
|
21
|
+
analysis-workflow-viewer # serves http://127.0.0.1:8765/ and opens it; --port, --no-open
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
In a VS Code remote terminal, tmux in it included, the page opens on your own machine: VS Code's `$BROWSER`
|
|
25
|
+
helper forwards the port, as it does for `cirro launch`. Elsewhere, forward the port and open the address. Every click reads the
|
|
26
|
+
repo afresh, so the view follows the analysis as it moves on, and nothing is written. Files are listed from the
|
|
27
|
+
main checkout, where shared data and task outputs are, together with the checkout it is started in.
|
|
28
|
+
|
|
29
|
+
The trace is `analysis_workflow.trace`'s: a task's `inputs.yaml` says what it consumed, a store's records say
|
|
30
|
+
which task wrote each key. A file or key that is grey has nothing to trace.
|
|
31
|
+
|
|
32
|
+
## Release notes
|
|
33
|
+
|
|
34
|
+
See the [changelog][].
|
|
35
|
+
|
|
36
|
+
## Contact
|
|
37
|
+
|
|
38
|
+
For questions and help requests, you can reach out in the [scverse discourse][].
|
|
39
|
+
If you found a bug, please use the [issue tracker][].
|
|
40
|
+
|
|
41
|
+
## Citation
|
|
42
|
+
|
|
43
|
+
> t.b.a
|
|
44
|
+
|
|
45
|
+
[uv]: https://github.com/astral-sh/uv
|
|
46
|
+
[scverse discourse]: https://discourse.scverse.org/
|
|
47
|
+
[issue tracker]: https://github.com/quadbio/analysis-workflow-viewer/issues
|
|
48
|
+
[tests]: https://github.com/quadbio/analysis-workflow-viewer/actions/workflows/test.yaml
|
|
49
|
+
[documentation]: https://analysis-workflow-viewer.readthedocs.io
|
|
50
|
+
[changelog]: https://analysis-workflow-viewer.readthedocs.io/page/changelog.html
|
|
51
|
+
[api documentation]: https://analysis-workflow-viewer.readthedocs.io/page/api.html
|
|
52
|
+
[pypi]: https://pypi.org/project/analysis-workflow-viewer
|
|
53
|
+
[venv]: https://docs.python.org/3/tutorial/venv.html
|