cwl2inputs 0.1.0__tar.gz → 0.2.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.
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/.gitignore +1 -1
- cwl2inputs-0.2.0/CHANGELOG.md +63 -0
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/LICENSE +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/NOTICE +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/PKG-INFO +24 -14
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/README.md +16 -3
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/explanation/architecture.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/explanation/index.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/how-to/index.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/how-to/install.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/how-to/use-cli.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/index.md +6 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/reference/api.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/reference/index.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/tutorials/first-steps.md +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/docs/tutorials/index.md +1 -1
- cwl2inputs-0.2.0/pyproject.toml +316 -0
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/src/cwl2inputs/__about__.py +2 -2
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/src/cwl2inputs/__init__.py +1 -1
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/src/cwl2inputs/plugin.py +3 -7
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/tests/test_plugin.py +8 -17
- cwl2inputs-0.1.0/CHANGELOG.md +0 -28
- cwl2inputs-0.1.0/CONTRIBUTING.md +0 -47
- cwl2inputs-0.1.0/mkdocs.yaml +0 -67
- cwl2inputs-0.1.0/pyproject.toml +0 -187
- cwl2inputs-0.1.0/requirements-docs.txt +0 -3
- cwl2inputs-0.1.0/tests/test_version.py +0 -19
- {cwl2inputs-0.1.0 → cwl2inputs-0.2.0}/tests/fixtures/hello.cwl +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright 2026 Terradue
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
|
|
17
|
+
# Changelog
|
|
18
|
+
|
|
19
|
+
All notable changes follow [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
20
|
+
and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
21
|
+
|
|
22
|
+
## [Unreleased]
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
### Deprecated
|
|
29
|
+
|
|
30
|
+
### Removed
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
### Security
|
|
35
|
+
|
|
36
|
+
## [0.2.0] - 2026-12-03
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Bump the package minor version from 0.1.1 to 0.2.0.
|
|
41
|
+
- Require Python 3.11 or newer, remove the Python 3.10 classifier, and add the Python 3.15 classifier.
|
|
42
|
+
- Set the Hatch test matrix and package workflow Python matrix to Python 3.11–3.15.
|
|
43
|
+
- Remove the local editable `transpiler-mate-api` override from `[tool.uv.sources]`.
|
|
44
|
+
- Document Python version support in the README and documentation landing page with notices for version 0.2.0.
|
|
45
|
+
|
|
46
|
+
## [0.1.1] - 2026-09-28
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- Improved type annotations and internal code quality by addressing mypy, Ruff, and Bandit findings, without changing public APIs or runtime behavior.
|
|
51
|
+
|
|
52
|
+
## [0.1.0] - 2026-09-18
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
|
|
56
|
+
- Transpiler-Mate plugin for YAML input template generation through cwltool APIs.
|
|
57
|
+
- Explicit process selection and configurable output path, defaulting to `inputs.yaml`.
|
|
58
|
+
- Template-based Python packaging, CI, tests, and Diátaxis documentation.
|
|
59
|
+
|
|
60
|
+
[Unreleased]: https://github.com/Transpiler-Mate/cwl2inputs/compare/v0.2.0...develop
|
|
61
|
+
[0.2.0]: https://github.com/Transpiler-Mate/cwl2inputs/compare/v0.1.1...v0.2.0
|
|
62
|
+
[0.1.1]: https://github.com/Transpiler-Mate/cwl2inputs/compare/v0.1.0...v0.1.1
|
|
63
|
+
[0.1.0]: https://github.com/Transpiler-Mate/cwl2inputs/releases/tag/v0.1.0
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2026
|
|
189
|
+
Copyright 2026 Terradue
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cwl2inputs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Generate CWL input templates using cwltool.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Transpiler-Mate/cwl2inputs
|
|
6
6
|
Project-URL: Documentation, https://Transpiler-Mate.github.io/cwl2inputs/
|
|
@@ -13,30 +13,27 @@ License-File: LICENSE
|
|
|
13
13
|
License-File: NOTICE
|
|
14
14
|
Classifier: Development Status :: 4 - Beta
|
|
15
15
|
Classifier: Intended Audience :: Developers
|
|
16
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
16
|
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
23
22
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
23
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
25
|
-
Requires-Python: >=3.
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist: cwltool<4,>=3.1.20240508115724
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Requires-Dist: cwltool<4,>=3.3.20261106131234
|
|
28
26
|
Requires-Dist: loguru==0.7.3
|
|
29
27
|
Requires-Dist: pydantic<3,>=2
|
|
30
|
-
Requires-Dist: transpiler-mate-api
|
|
28
|
+
Requires-Dist: transpiler-mate-api>=1.1.0
|
|
31
29
|
Provides-Extra: test
|
|
32
|
-
Requires-Dist:
|
|
33
|
-
Requires-Dist: pytest
|
|
34
|
-
Requires-Dist:
|
|
35
|
-
Requires-Dist: transpiler-mate-runtime<2,>=1.0.1; extra == 'test'
|
|
30
|
+
Requires-Dist: pytest-cov<8,>=7.1.0; extra == 'test'
|
|
31
|
+
Requires-Dist: pytest<10,>=9.2.0; extra == 'test'
|
|
32
|
+
Requires-Dist: transpiler-mate-runtime<2,>=1.3.1; extra == 'test'
|
|
36
33
|
Description-Content-Type: text/markdown
|
|
37
34
|
|
|
38
35
|
<!--
|
|
39
|
-
Copyright 2026
|
|
36
|
+
Copyright 2026 Terradue
|
|
40
37
|
|
|
41
38
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
39
|
you may not use this file except in compliance with the License.
|
|
@@ -53,12 +50,21 @@ limitations under the License.
|
|
|
53
50
|
|
|
54
51
|
# CWL 2 Inputs
|
|
55
52
|
|
|
53
|
+
[](https://pypi.org/project/cwl2inputs)
|
|
54
|
+
[](https://pypi.org/project/cwl2inputs)
|
|
55
|
+
[](https://github.com/transpiler-mate/cwl2inputs/actions/workflows/package.yaml?query=branch%3Adevelop)
|
|
56
|
+
[](https://app.codecov.io/gh/transpiler-mate/cwl2inputs/tree/develop)
|
|
57
|
+
|
|
56
58
|
`cwl2inputs` is a Transpiler-Mate plugin that generates an `inputs.yaml` template
|
|
57
59
|
for a selected CWL workflow or tool using cwltool's Python APIs.
|
|
58
60
|
|
|
61
|
+
> [!IMPORTANT]
|
|
62
|
+
> Starting with version 0.2.0, Python 3.10 support has been removed because it has
|
|
63
|
+
> reached end of life (EOL). Python 3.15 is now supported.
|
|
64
|
+
|
|
59
65
|
## Install from source
|
|
60
66
|
|
|
61
|
-
Use Python 3.
|
|
67
|
+
Use Python 3.11 or newer. From this repository:
|
|
62
68
|
|
|
63
69
|
```console
|
|
64
70
|
python -m pip install . transpiler-mate-runtime
|
|
@@ -103,4 +109,8 @@ See the [first-steps tutorial](docs/tutorials/first-steps.md),
|
|
|
103
109
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for checks and development setup.
|
|
104
110
|
|
|
105
111
|
Bootstrapped with [transpiler-mate-plugin-project-template](https://github.com/transpiler-mate/transpiler-mate-plugin-project-template)
|
|
106
|
-
using Copier.
|
|
112
|
+
using Copier.
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Copyright 2026
|
|
2
|
+
Copyright 2026 Terradue
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -16,12 +16,21 @@ limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
# CWL 2 Inputs
|
|
18
18
|
|
|
19
|
+
[](https://pypi.org/project/cwl2inputs)
|
|
20
|
+
[](https://pypi.org/project/cwl2inputs)
|
|
21
|
+
[](https://github.com/transpiler-mate/cwl2inputs/actions/workflows/package.yaml?query=branch%3Adevelop)
|
|
22
|
+
[](https://app.codecov.io/gh/transpiler-mate/cwl2inputs/tree/develop)
|
|
23
|
+
|
|
19
24
|
`cwl2inputs` is a Transpiler-Mate plugin that generates an `inputs.yaml` template
|
|
20
25
|
for a selected CWL workflow or tool using cwltool's Python APIs.
|
|
21
26
|
|
|
27
|
+
> [!IMPORTANT]
|
|
28
|
+
> Starting with version 0.2.0, Python 3.10 support has been removed because it has
|
|
29
|
+
> reached end of life (EOL). Python 3.15 is now supported.
|
|
30
|
+
|
|
22
31
|
## Install from source
|
|
23
32
|
|
|
24
|
-
Use Python 3.
|
|
33
|
+
Use Python 3.11 or newer. From this repository:
|
|
25
34
|
|
|
26
35
|
```console
|
|
27
36
|
python -m pip install . transpiler-mate-runtime
|
|
@@ -66,4 +75,8 @@ See the [first-steps tutorial](docs/tutorials/first-steps.md),
|
|
|
66
75
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for checks and development setup.
|
|
67
76
|
|
|
68
77
|
Bootstrapped with [transpiler-mate-plugin-project-template](https://github.com/transpiler-mate/transpiler-mate-plugin-project-template)
|
|
69
|
-
using Copier.
|
|
78
|
+
using Copier.
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Copyright 2026
|
|
2
|
+
Copyright 2026 Terradue
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -19,6 +19,11 @@ limitations under the License.
|
|
|
19
19
|
Generate a YAML input template for a selected CWL workflow or tool through
|
|
20
20
|
Transpiler-Mate, using cwltool's Python APIs.
|
|
21
21
|
|
|
22
|
+
!!! important "Python version support"
|
|
23
|
+
|
|
24
|
+
Starting with version 0.2.0, Python 3.10 support has been removed because it has
|
|
25
|
+
reached end of life (EOL). Python 3.15 is now supported.
|
|
26
|
+
|
|
22
27
|
- [First steps](tutorials/first-steps.md): generate your first template.
|
|
23
28
|
- [Install](how-to/install.md): install the plugin and runtime.
|
|
24
29
|
- [Use the CLI](how-to/use-cli.md): select a process and output file.
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# Copyright 2026 Terradue
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
[build-system]
|
|
16
|
+
requires = ["hatchling>=1.33.0"]
|
|
17
|
+
build-backend = "hatchling.build"
|
|
18
|
+
|
|
19
|
+
[project]
|
|
20
|
+
name = "cwl2inputs"
|
|
21
|
+
dynamic = ["version"]
|
|
22
|
+
description = "Generate CWL input templates using cwltool."
|
|
23
|
+
readme = "README.md"
|
|
24
|
+
requires-python = ">=3.11"
|
|
25
|
+
license = "Apache-2.0"
|
|
26
|
+
authors = [
|
|
27
|
+
{ name = "Transpiler-Mate", email = "info@terradue.com" },
|
|
28
|
+
]
|
|
29
|
+
keywords = []
|
|
30
|
+
classifiers = [
|
|
31
|
+
"Development Status :: 4 - Beta",
|
|
32
|
+
"Intended Audience :: Developers",
|
|
33
|
+
"Programming Language :: Python",
|
|
34
|
+
"Programming Language :: Python :: 3.11",
|
|
35
|
+
"Programming Language :: Python :: 3.12",
|
|
36
|
+
"Programming Language :: Python :: 3.13",
|
|
37
|
+
"Programming Language :: Python :: 3.14",
|
|
38
|
+
"Programming Language :: Python :: 3.15",
|
|
39
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
40
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
41
|
+
]
|
|
42
|
+
dependencies = [
|
|
43
|
+
"transpiler-mate-api>=1.1.0",
|
|
44
|
+
"loguru==0.7.3",
|
|
45
|
+
"cwltool>=3.3.20261106131234,<4",
|
|
46
|
+
"pydantic>=2,<3"
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[project.optional-dependencies]
|
|
50
|
+
test = [
|
|
51
|
+
"pytest>=9.2.0,<10",
|
|
52
|
+
"pytest-cov>=7.1.0,<8",
|
|
53
|
+
"transpiler-mate-runtime>=1.3.1,<2",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
# ---------------------------------------------------------------------------
|
|
57
|
+
# Transpiler Mate plugin entry point
|
|
58
|
+
# ---------------------------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
[project.entry-points."transpiler_mate.plugins"]
|
|
61
|
+
cwl2inputs = "cwl2inputs.plugin:cwl2inputs"
|
|
62
|
+
|
|
63
|
+
# ---------------------------------------------------------------------------
|
|
64
|
+
# Project Refs
|
|
65
|
+
# ---------------------------------------------------------------------------
|
|
66
|
+
|
|
67
|
+
[project.urls]
|
|
68
|
+
Homepage = "https://github.com/Transpiler-Mate/cwl2inputs"
|
|
69
|
+
Documentation = "https://Transpiler-Mate.github.io/cwl2inputs/"
|
|
70
|
+
Repository = "https://github.com/Transpiler-Mate/cwl2inputs"
|
|
71
|
+
Issues = "https://github.com/Transpiler-Mate/cwl2inputs/issues"
|
|
72
|
+
Changelog = "https://github.com/Transpiler-Mate/cwl2inputs/blob/main/CHANGELOG.md"
|
|
73
|
+
|
|
74
|
+
# ---------------------------------------------------------------------------
|
|
75
|
+
# Versioning and packaging
|
|
76
|
+
# ---------------------------------------------------------------------------
|
|
77
|
+
|
|
78
|
+
[tool.hatch.version]
|
|
79
|
+
path = "src/cwl2inputs/__about__.py"
|
|
80
|
+
|
|
81
|
+
[tool.hatch.build.targets.sdist]
|
|
82
|
+
include = [
|
|
83
|
+
"/src",
|
|
84
|
+
"/tests",
|
|
85
|
+
"/docs",
|
|
86
|
+
"/README.md",
|
|
87
|
+
"/CHANGELOG.md",
|
|
88
|
+
"/LICENSE",
|
|
89
|
+
"/NOTICE",
|
|
90
|
+
"/pyproject.toml",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
[tool.hatch.build.targets.wheel]
|
|
94
|
+
packages = ["src/cwl2inputs"]
|
|
95
|
+
|
|
96
|
+
# ---------------------------------------------------------------------------
|
|
97
|
+
# Coverage
|
|
98
|
+
# ---------------------------------------------------------------------------
|
|
99
|
+
|
|
100
|
+
[tool.coverage.run]
|
|
101
|
+
source_pkgs = ["cwl2inputs", "tests"]
|
|
102
|
+
branch = true
|
|
103
|
+
parallel = true
|
|
104
|
+
omit = [
|
|
105
|
+
"src/cwl2inputs/__about__.py",
|
|
106
|
+
]
|
|
107
|
+
|
|
108
|
+
[tool.coverage.paths]
|
|
109
|
+
cwl2inputs = [
|
|
110
|
+
"src/cwl2inputs",
|
|
111
|
+
"*/{{ project_slug }}/src/cwl2inputs"
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
[tool.coverage.report]
|
|
115
|
+
show_missing = true
|
|
116
|
+
skip_covered = false
|
|
117
|
+
|
|
118
|
+
exclude_lines = [
|
|
119
|
+
"no cov",
|
|
120
|
+
"if __name__ == .__main__.:",
|
|
121
|
+
"if TYPE_CHECKING:",
|
|
122
|
+
"raise NotImplementedError",
|
|
123
|
+
]
|
|
124
|
+
|
|
125
|
+
# ---------------------------------------------------------------------------
|
|
126
|
+
# Hatch: test environment
|
|
127
|
+
# ---------------------------------------------------------------------------
|
|
128
|
+
|
|
129
|
+
[tool.hatch.envs.test]
|
|
130
|
+
skip-install = false
|
|
131
|
+
features = ["test"]
|
|
132
|
+
dependencies = [
|
|
133
|
+
"pytest>=9.2.0,<10",
|
|
134
|
+
"pytest-cov>=7.1.0,<8",
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
[tool.hatch.envs.test.scripts]
|
|
138
|
+
test = "pytest {args:tests}"
|
|
139
|
+
testv = "pytest --verbose {args:tests}"
|
|
140
|
+
test-cov = "pytest --cov=cwl2inputs --cov-report=term-missing --cov-report=xml:coverage.xml {args:tests}"
|
|
141
|
+
test-show-setup = "pytest --setup-show {args:tests}"
|
|
142
|
+
|
|
143
|
+
[[tool.hatch.envs.test.matrix]]
|
|
144
|
+
python = ["3.11", "3.12", "3.13", "3.14", "3.15"]
|
|
145
|
+
|
|
146
|
+
# ---------------------------------------------------------------------------
|
|
147
|
+
# Pytest
|
|
148
|
+
# ---------------------------------------------------------------------------
|
|
149
|
+
|
|
150
|
+
[tool.pytest.ini_options]
|
|
151
|
+
testpaths = ["tests"]
|
|
152
|
+
|
|
153
|
+
addopts = [
|
|
154
|
+
"--strict-config",
|
|
155
|
+
"--strict-markers",
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
xfail_strict = true
|
|
159
|
+
|
|
160
|
+
# ---------------------------------------------------------------------------
|
|
161
|
+
# Hatch: development and quality environment
|
|
162
|
+
# ---------------------------------------------------------------------------
|
|
163
|
+
|
|
164
|
+
[tool.hatch.envs.dev]
|
|
165
|
+
skip-install = false
|
|
166
|
+
features = ["test"]
|
|
167
|
+
dependencies = [
|
|
168
|
+
"mypy>=2.3.0",
|
|
169
|
+
"ruff>=0.16.0",
|
|
170
|
+
"bandit>=1.9.4",
|
|
171
|
+
"pytest>=9.2.0,<10",
|
|
172
|
+
]
|
|
173
|
+
|
|
174
|
+
# ---------------------------------------------------------------------------
|
|
175
|
+
# Ruff
|
|
176
|
+
# ---------------------------------------------------------------------------
|
|
177
|
+
|
|
178
|
+
[tool.ruff]
|
|
179
|
+
line-length = 100
|
|
180
|
+
|
|
181
|
+
[tool.ruff.lint]
|
|
182
|
+
# Start with the essential rules
|
|
183
|
+
select = [
|
|
184
|
+
# Core correctness
|
|
185
|
+
"F", # Pyflakes
|
|
186
|
+
"E", # pycodestyle errors
|
|
187
|
+
"W", # pycodestyle warnings
|
|
188
|
+
|
|
189
|
+
# Imports and modernization
|
|
190
|
+
"I", # isort
|
|
191
|
+
"UP", # pyupgrade
|
|
192
|
+
"FA", # future annotations
|
|
193
|
+
"TC", # type-checking imports
|
|
194
|
+
|
|
195
|
+
# Bugs and correctness
|
|
196
|
+
"B", # flake8-bugbear
|
|
197
|
+
"RET", # flake8-return
|
|
198
|
+
"PTH", # pathlib usage
|
|
199
|
+
"C4", # comprehensions
|
|
200
|
+
|
|
201
|
+
# Simplification and readability
|
|
202
|
+
"SIM", # flake8-simplify
|
|
203
|
+
|
|
204
|
+
# Complexity
|
|
205
|
+
"C90", # McCabe complexity
|
|
206
|
+
|
|
207
|
+
# Pylint-derived checks
|
|
208
|
+
"PLE", # Pylint errors
|
|
209
|
+
"PLW", # Pylint warnings
|
|
210
|
+
"PLR", # Pylint refactor/design checks
|
|
211
|
+
|
|
212
|
+
# Performance and Ruff-specific quality checks
|
|
213
|
+
"PERF",
|
|
214
|
+
"RUF",
|
|
215
|
+
]
|
|
216
|
+
|
|
217
|
+
ignore = [
|
|
218
|
+
# Formatter-controlled rules
|
|
219
|
+
"E501", # line length
|
|
220
|
+
"W191", # tab indentation
|
|
221
|
+
"E111", # indentation
|
|
222
|
+
"E114", # indentation
|
|
223
|
+
"E117", # over-indented
|
|
224
|
+
|
|
225
|
+
# Too opinionated for a general project template.
|
|
226
|
+
# Enable per repository if useful.
|
|
227
|
+
# "PLR0904", # too many public methods
|
|
228
|
+
]
|
|
229
|
+
|
|
230
|
+
[tool.ruff.lint.mccabe]
|
|
231
|
+
# Flag errors (C901) whenever complexity exceeds 10 (default is 10)
|
|
232
|
+
max-complexity = 7
|
|
233
|
+
|
|
234
|
+
[tool.ruff.lint.pylint]
|
|
235
|
+
# Keep these deliberately stricter than Pylint defaults.
|
|
236
|
+
max-args = 6
|
|
237
|
+
max-branches = 10
|
|
238
|
+
max-returns = 6
|
|
239
|
+
max-statements = 40
|
|
240
|
+
|
|
241
|
+
# ---------------------------------------------------------------------------
|
|
242
|
+
# Mypy
|
|
243
|
+
# ---------------------------------------------------------------------------
|
|
244
|
+
|
|
245
|
+
[tool.mypy]
|
|
246
|
+
|
|
247
|
+
# Strict typing is the default for new Terradue Python projects.
|
|
248
|
+
strict = true
|
|
249
|
+
|
|
250
|
+
# Improve diagnostics.
|
|
251
|
+
pretty = true
|
|
252
|
+
show_error_codes = true
|
|
253
|
+
show_error_context = true
|
|
254
|
+
warn_unreachable = true
|
|
255
|
+
|
|
256
|
+
# Avoid silently accepting untyped third-party APIs.
|
|
257
|
+
ignore_missing_imports = false
|
|
258
|
+
|
|
259
|
+
# Files checked by default.
|
|
260
|
+
files = [
|
|
261
|
+
"src/cwl2inputs",
|
|
262
|
+
"tests"
|
|
263
|
+
]
|
|
264
|
+
|
|
265
|
+
# The runtime has inline annotations but does not ship a py.typed marker.
|
|
266
|
+
# Analyze its CLI annotations instead of treating the import as untyped.
|
|
267
|
+
[[tool.mypy.overrides]]
|
|
268
|
+
module = ["transpiler_mate.runtime.cli"]
|
|
269
|
+
follow_untyped_imports = true
|
|
270
|
+
|
|
271
|
+
[tool.hatch.envs.dev.scripts]
|
|
272
|
+
# ---------------------------------------------------------------------------
|
|
273
|
+
# Developer commands
|
|
274
|
+
#
|
|
275
|
+
# These commands are allowed to modify files.
|
|
276
|
+
# ---------------------------------------------------------------------------
|
|
277
|
+
|
|
278
|
+
format = "ruff format {args:src tests}"
|
|
279
|
+
|
|
280
|
+
fix = [
|
|
281
|
+
"ruff check --fix {args:src tests}",
|
|
282
|
+
"ruff format {args:src tests}",
|
|
283
|
+
]
|
|
284
|
+
|
|
285
|
+
# ---------------------------------------------------------------------------
|
|
286
|
+
# Verification commands
|
|
287
|
+
#
|
|
288
|
+
# These commands MUST NOT modify files and are suitable for CI.
|
|
289
|
+
# ---------------------------------------------------------------------------
|
|
290
|
+
|
|
291
|
+
format-check = "ruff format --check {args:src tests}"
|
|
292
|
+
|
|
293
|
+
lint = "ruff check {args:src tests}"
|
|
294
|
+
lint-check = "ruff check {args:src tests}"
|
|
295
|
+
design-check = "ruff check --select C90,PLR {args:src tests}"
|
|
296
|
+
|
|
297
|
+
typecheck = "mypy {args:src tests}"
|
|
298
|
+
|
|
299
|
+
security = "bandit -r {args:src}"
|
|
300
|
+
|
|
301
|
+
# Run the complete static quality gate.
|
|
302
|
+
quality = [
|
|
303
|
+
"ruff format --check {args:src tests}",
|
|
304
|
+
"ruff check {args:src tests}",
|
|
305
|
+
"mypy {args:src tests}",
|
|
306
|
+
"bandit -r {args:src}",
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
# Complete local/CI validation including tests.
|
|
310
|
+
check = [
|
|
311
|
+
"ruff format --check {args:src tests}",
|
|
312
|
+
"ruff check {args:src tests}",
|
|
313
|
+
"mypy {args:src tests}",
|
|
314
|
+
"bandit -r {args:src}",
|
|
315
|
+
"pytest {args:tests}",
|
|
316
|
+
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2026
|
|
1
|
+
# Copyright 2026 Terradue
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
|
|
15
15
|
"""Package metadata for CWL 2 Inputs."""
|
|
16
16
|
|
|
17
|
-
__version__ = "0.
|
|
17
|
+
__version__ = "0.2.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2026
|
|
1
|
+
# Copyright 2026 Terradue
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -41,9 +41,7 @@ class CWL2InputsOptions(BaseModel):
|
|
|
41
41
|
|
|
42
42
|
model_config = ConfigDict(extra="forbid")
|
|
43
43
|
|
|
44
|
-
output: Path = Field(
|
|
45
|
-
default=Path("inputs.yaml"), description="The output YAML file path"
|
|
46
|
-
)
|
|
44
|
+
output: Path = Field(default=Path("inputs.yaml"), description="The output YAML file path")
|
|
47
45
|
|
|
48
46
|
|
|
49
47
|
def _remove_anonymous_enum_names(value: Any) -> None:
|
|
@@ -72,9 +70,7 @@ def generate_template(context: TranspilerContext) -> str:
|
|
|
72
70
|
source.write_text(json.dumps(document), encoding="utf-8")
|
|
73
71
|
loading_context = LoadingContext()
|
|
74
72
|
loading_context.construct_tool_object = default_make_tool
|
|
75
|
-
tool = load_tool(
|
|
76
|
-
f"{source.as_uri()}#{quote(process.id, safe='/')}", loading_context
|
|
77
|
-
)
|
|
73
|
+
tool = load_tool(f"{source.as_uri()}#{quote(process.id, safe='/')}", loading_context)
|
|
78
74
|
output = StringIO()
|
|
79
75
|
make_template(tool, output)
|
|
80
76
|
return output.getvalue()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2026
|
|
1
|
+
# Copyright 2026 Terradue
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -74,9 +74,7 @@ $graph:
|
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
def make_context(
|
|
78
|
-
document: str = DOCUMENT, process_id: str | None = "main"
|
|
79
|
-
) -> TranspilerContext:
|
|
77
|
+
def make_context(document: str = DOCUMENT, process_id: str | None = "main") -> TranspilerContext:
|
|
80
78
|
loaded = load_cwl_from_string_content(document)
|
|
81
79
|
processes = loaded if isinstance(loaded, list) else [loaded]
|
|
82
80
|
return TranspilerContext.model_construct(
|
|
@@ -100,11 +98,10 @@ def test_template_matches_cwltool(tmp_path: Path) -> None:
|
|
|
100
98
|
)
|
|
101
99
|
output = tmp_path / "nested" / "inputs.yaml"
|
|
102
100
|
cwl2inputs.execute(context, CWL2InputsOptions(output=output))
|
|
103
|
-
assert YAML(typ="safe").load(output.read_text()) == YAML(typ="safe").load(
|
|
104
|
-
expected.getvalue()
|
|
105
|
-
)
|
|
101
|
+
assert YAML(typ="safe").load(output.read_text()) == YAML(typ="safe").load(expected.getvalue())
|
|
106
102
|
template = YAML(typ="safe").load(output.read_text())
|
|
107
|
-
|
|
103
|
+
expected_count = 7
|
|
104
|
+
assert template["count"] == expected_count
|
|
108
105
|
assert template["pre_event"]["class"] == "Directory"
|
|
109
106
|
assert template["files"][0]["class"] == "File"
|
|
110
107
|
assert template["settings"]["enabled"] is False
|
|
@@ -112,22 +109,16 @@ def test_template_matches_cwltool(tmp_path: Path) -> None:
|
|
|
112
109
|
|
|
113
110
|
|
|
114
111
|
def test_selected_tool_only() -> None:
|
|
115
|
-
template = YAML(typ="safe").load(
|
|
116
|
-
generate_template(make_context(process_id="other"))
|
|
117
|
-
)
|
|
112
|
+
template = YAML(typ="safe").load(generate_template(make_context(process_id="other")))
|
|
118
113
|
assert template == {"message": "hello"}
|
|
119
114
|
|
|
120
115
|
|
|
121
116
|
@pytest.mark.parametrize("process_id", [None, "missing"])
|
|
122
|
-
def test_invalid_selection_preserves_output(
|
|
123
|
-
tmp_path: Path, process_id: str | None
|
|
124
|
-
) -> None:
|
|
117
|
+
def test_invalid_selection_preserves_output(tmp_path: Path, process_id: str | None) -> None:
|
|
125
118
|
output = tmp_path / "inputs.yaml"
|
|
126
119
|
output.write_text("existing")
|
|
127
120
|
with pytest.raises(PluginExecutionError):
|
|
128
|
-
cwl2inputs.execute(
|
|
129
|
-
make_context(process_id=process_id), CWL2InputsOptions(output=output)
|
|
130
|
-
)
|
|
121
|
+
cwl2inputs.execute(make_context(process_id=process_id), CWL2InputsOptions(output=output))
|
|
131
122
|
assert output.read_text() == "existing"
|
|
132
123
|
|
|
133
124
|
|
cwl2inputs-0.1.0/CHANGELOG.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2026 Transpiler-Mate
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
|
|
17
|
-
# Changelog
|
|
18
|
-
|
|
19
|
-
All notable changes follow [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
20
|
-
and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
21
|
-
|
|
22
|
-
## [Unreleased]
|
|
23
|
-
|
|
24
|
-
### Added
|
|
25
|
-
|
|
26
|
-
- Transpiler-Mate plugin for YAML input template generation through cwltool APIs.
|
|
27
|
-
- Explicit process selection and configurable output path, defaulting to `inputs.yaml`.
|
|
28
|
-
- Template-based Python packaging, CI, tests, and Diátaxis documentation.
|
cwl2inputs-0.1.0/CONTRIBUTING.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2026 Transpiler-Mate
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
|
|
17
|
-
# Contributing to CWL 2 Inputs
|
|
18
|
-
|
|
19
|
-
This project was generated from `transpiler-mate-plugin-project-template` with
|
|
20
|
-
Copier (`project_name="CWL 2 Inputs"`, `project_slug="cwl2inputs"`,
|
|
21
|
-
`python_package="cwl2inputs"`).
|
|
22
|
-
|
|
23
|
-
Install Hatch, then run:
|
|
24
|
-
|
|
25
|
-
```console
|
|
26
|
-
hatch run test:test
|
|
27
|
-
hatch run dev:typecheck
|
|
28
|
-
hatch run dev:lint
|
|
29
|
-
hatch run dev:check
|
|
30
|
-
hatch run dev:security
|
|
31
|
-
hatch build
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
`dev:lint` formats files and `dev:check` applies lint fixes. To check without
|
|
35
|
-
changing files, use `hatch run dev:ruff format --check src tests` and
|
|
36
|
-
`hatch run dev:ruff check src tests`.
|
|
37
|
-
|
|
38
|
-
Build the documentation with:
|
|
39
|
-
|
|
40
|
-
```console
|
|
41
|
-
python -m pip install -r requirements-docs.txt
|
|
42
|
-
mkdocs build --strict
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Tests exercise cwltool's actual Python APIs, template values, process selection,
|
|
46
|
-
entry-point registration, and failure handling. The default suite uses local
|
|
47
|
-
fixtures and requires neither Docker nor remote CWL schemas.
|
cwl2inputs-0.1.0/mkdocs.yaml
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# Copyright 2026 Transpiler-Mate
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
site_name: CWL 2 Inputs
|
|
16
|
-
site_description: Generate CWL input templates using cwltool.
|
|
17
|
-
site_url: https://Transpiler-Mate.github.io/cwl2inputs/
|
|
18
|
-
repo_url: https://github.com/Transpiler-Mate/cwl2inputs
|
|
19
|
-
repo_name: cwl2inputs
|
|
20
|
-
edit_uri: edit/main/docs/
|
|
21
|
-
|
|
22
|
-
docs_dir: docs
|
|
23
|
-
site_dir: site
|
|
24
|
-
|
|
25
|
-
nav:
|
|
26
|
-
- Home: index.md
|
|
27
|
-
- Tutorials:
|
|
28
|
-
- Overview: tutorials/index.md
|
|
29
|
-
- First steps: tutorials/first-steps.md
|
|
30
|
-
- How-to guides:
|
|
31
|
-
- Overview: how-to/index.md
|
|
32
|
-
- Install: how-to/install.md
|
|
33
|
-
- Use the CLI: how-to/use-cli.md
|
|
34
|
-
- Reference:
|
|
35
|
-
- Overview: reference/index.md
|
|
36
|
-
- API: reference/api.md
|
|
37
|
-
- Explanation:
|
|
38
|
-
- Overview: explanation/index.md
|
|
39
|
-
- Architecture: explanation/architecture.md
|
|
40
|
-
|
|
41
|
-
theme:
|
|
42
|
-
name: readthedocs
|
|
43
|
-
features:
|
|
44
|
-
- navigation.sections
|
|
45
|
-
- navigation.indexes
|
|
46
|
-
- content.code.copy
|
|
47
|
-
- search.suggest
|
|
48
|
-
|
|
49
|
-
plugins:
|
|
50
|
-
- search
|
|
51
|
-
- mkdocstrings:
|
|
52
|
-
handlers:
|
|
53
|
-
python:
|
|
54
|
-
paths: [src]
|
|
55
|
-
options:
|
|
56
|
-
docstring_style: google
|
|
57
|
-
show_source: true
|
|
58
|
-
|
|
59
|
-
markdown_extensions:
|
|
60
|
-
- admonition
|
|
61
|
-
- attr_list
|
|
62
|
-
- def_list
|
|
63
|
-
- footnotes
|
|
64
|
-
- toc:
|
|
65
|
-
permalink: true
|
|
66
|
-
- pymdownx.details
|
|
67
|
-
- pymdownx.superfences
|
cwl2inputs-0.1.0/pyproject.toml
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
# Copyright 2026 Transpiler-Mate
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
[build-system]
|
|
16
|
-
requires = ["hatchling>=1.25"]
|
|
17
|
-
build-backend = "hatchling.build"
|
|
18
|
-
|
|
19
|
-
[project]
|
|
20
|
-
name = "cwl2inputs"
|
|
21
|
-
dynamic = ["version"]
|
|
22
|
-
description = "Generate CWL input templates using cwltool."
|
|
23
|
-
readme = "README.md"
|
|
24
|
-
requires-python = ">=3.10"
|
|
25
|
-
license = "Apache-2.0"
|
|
26
|
-
authors = [
|
|
27
|
-
{ name = "Transpiler-Mate", email = "info@terradue.com" },
|
|
28
|
-
]
|
|
29
|
-
keywords = []
|
|
30
|
-
classifiers = [
|
|
31
|
-
"Development Status :: 4 - Beta",
|
|
32
|
-
"Intended Audience :: Developers",
|
|
33
|
-
"License :: OSI Approved :: Apache Software License",
|
|
34
|
-
"Programming Language :: Python",
|
|
35
|
-
"Programming Language :: Python :: 3.10",
|
|
36
|
-
"Programming Language :: Python :: 3.11",
|
|
37
|
-
"Programming Language :: Python :: 3.12",
|
|
38
|
-
"Programming Language :: Python :: 3.13",
|
|
39
|
-
"Programming Language :: Python :: 3.14",
|
|
40
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
41
|
-
"Programming Language :: Python :: Implementation :: PyPy",
|
|
42
|
-
]
|
|
43
|
-
dependencies = [
|
|
44
|
-
"transpiler-mate-api==1.0.0",
|
|
45
|
-
"loguru==0.7.3",
|
|
46
|
-
"cwltool>=3.1.20240508115724,<4",
|
|
47
|
-
"cwl-utils>=0.40",
|
|
48
|
-
"pydantic>=2,<3"
|
|
49
|
-
]
|
|
50
|
-
|
|
51
|
-
[project.optional-dependencies]
|
|
52
|
-
test = [
|
|
53
|
-
"pytest>=8.4,<10",
|
|
54
|
-
"pytest-cov>=6.2,<8",
|
|
55
|
-
"cwl-loader>=0.25.0",
|
|
56
|
-
"transpiler-mate-runtime>=1.0.1,<2",
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
[project.entry-points."transpiler_mate.plugins"]
|
|
60
|
-
cwl2inputs = "cwl2inputs.plugin:cwl2inputs"
|
|
61
|
-
|
|
62
|
-
[project.urls]
|
|
63
|
-
Homepage = "https://github.com/Transpiler-Mate/cwl2inputs"
|
|
64
|
-
Documentation = "https://Transpiler-Mate.github.io/cwl2inputs/"
|
|
65
|
-
Repository = "https://github.com/Transpiler-Mate/cwl2inputs"
|
|
66
|
-
Issues = "https://github.com/Transpiler-Mate/cwl2inputs/issues"
|
|
67
|
-
Changelog = "https://github.com/Transpiler-Mate/cwl2inputs/blob/main/CHANGELOG.md"
|
|
68
|
-
|
|
69
|
-
[tool.hatch.version]
|
|
70
|
-
path = "src/cwl2inputs/__about__.py"
|
|
71
|
-
|
|
72
|
-
[tool.hatch.build.targets.sdist]
|
|
73
|
-
include = [
|
|
74
|
-
"/src",
|
|
75
|
-
"/tests",
|
|
76
|
-
"/docs",
|
|
77
|
-
"/README.md",
|
|
78
|
-
"/CHANGELOG.md",
|
|
79
|
-
"/LICENSE",
|
|
80
|
-
"/NOTICE",
|
|
81
|
-
"/pyproject.toml",
|
|
82
|
-
"/mkdocs.yaml",
|
|
83
|
-
"/requirements-docs.txt",
|
|
84
|
-
"/CONTRIBUTING.md",
|
|
85
|
-
]
|
|
86
|
-
|
|
87
|
-
[tool.hatch.build.targets.wheel]
|
|
88
|
-
packages = ["src/cwl2inputs"]
|
|
89
|
-
|
|
90
|
-
[tool.hatch.envs.types]
|
|
91
|
-
features = ["test"]
|
|
92
|
-
extra-dependencies = [
|
|
93
|
-
"mypy==1.19.1",
|
|
94
|
-
]
|
|
95
|
-
[tool.hatch.envs.types.scripts]
|
|
96
|
-
check = "mypy --install-types --non-interactive {args:src/cwl2inputs tests}"
|
|
97
|
-
|
|
98
|
-
[tool.coverage.run]
|
|
99
|
-
source_pkgs = ["cwl2inputs"]
|
|
100
|
-
branch = true
|
|
101
|
-
parallel = true
|
|
102
|
-
omit = [
|
|
103
|
-
"src/cwl2inputs/__about__.py",
|
|
104
|
-
]
|
|
105
|
-
|
|
106
|
-
[tool.coverage.paths]
|
|
107
|
-
cwl2inputs = ["src/cwl2inputs", "*/cwl2inputs/src/cwl2inputs"]
|
|
108
|
-
|
|
109
|
-
[tool.coverage.report]
|
|
110
|
-
exclude_lines = [
|
|
111
|
-
"no cov",
|
|
112
|
-
"if __name__ == .__main__.:",
|
|
113
|
-
"if TYPE_CHECKING:",
|
|
114
|
-
]
|
|
115
|
-
|
|
116
|
-
[tool.hatch.envs.test]
|
|
117
|
-
skip-install = false
|
|
118
|
-
features = ["test"]
|
|
119
|
-
|
|
120
|
-
[tool.hatch.envs.test.scripts]
|
|
121
|
-
test = "pytest {args:tests}"
|
|
122
|
-
testv = "pytest --verbose {args:tests}"
|
|
123
|
-
test-cov = "pytest --cov=cwl2inputs --cov-report=term-missing {args:tests}"
|
|
124
|
-
test-show-setup = "pytest --setup-show"
|
|
125
|
-
|
|
126
|
-
[tool.pytest.ini_options]
|
|
127
|
-
testpaths = ["tests"]
|
|
128
|
-
addopts = [
|
|
129
|
-
"--strict-config",
|
|
130
|
-
"--strict-markers",
|
|
131
|
-
]
|
|
132
|
-
|
|
133
|
-
[[tool.hatch.envs.test.matrix]]
|
|
134
|
-
python = ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
135
|
-
|
|
136
|
-
[tool.hatch.envs.dev]
|
|
137
|
-
features = ["test"]
|
|
138
|
-
skip-install = false
|
|
139
|
-
dependencies = [
|
|
140
|
-
"mypy>=2.3.0",
|
|
141
|
-
"ruff>=0.16.0",
|
|
142
|
-
"bandit>=1.9.4",
|
|
143
|
-
]
|
|
144
|
-
|
|
145
|
-
[tool.ruff.lint]
|
|
146
|
-
# Start with the essential rules
|
|
147
|
-
select = [
|
|
148
|
-
"F", # Pyflakes (Critical for bugs)
|
|
149
|
-
"E", # pycodestyle Errors
|
|
150
|
-
"W", # pycodestyle Warnings
|
|
151
|
-
"I", # isort (Import sorting)
|
|
152
|
-
"UP", # pyupgrade (Modern syntax)
|
|
153
|
-
"B", # flake8-bugbear (Common bugs)
|
|
154
|
-
"C4", # flake8-comprehensions
|
|
155
|
-
"SIM", # flake8-simplify
|
|
156
|
-
"FA", # flake8-future-annotations
|
|
157
|
-
"TC", # flake8-type-checking
|
|
158
|
-
"PTH", # flake8-use-pathlib
|
|
159
|
-
"RET", # flake8-return
|
|
160
|
-
"C90", # McCabe Complexity (Enables C901)
|
|
161
|
-
]
|
|
162
|
-
|
|
163
|
-
# Ignore rules that conflict with the formatter (Ruff Format/Black)
|
|
164
|
-
ignore = [
|
|
165
|
-
"E501", # Line too long (handled by formatter)
|
|
166
|
-
"W191", # Tab indentation (handled by formatter)
|
|
167
|
-
"E111", # Indentation issues (handled by formatter)
|
|
168
|
-
"E114", # Indentation issues (handled by formatter)
|
|
169
|
-
"E117", # Over-indented (handled by formatter)
|
|
170
|
-
]
|
|
171
|
-
|
|
172
|
-
[tool.ruff.lint.mccabe]
|
|
173
|
-
# Flag errors (C901) whenever complexity exceeds 10 (default is 10)
|
|
174
|
-
max-complexity = 10
|
|
175
|
-
|
|
176
|
-
[tool.hatch.envs.dev.scripts]
|
|
177
|
-
typecheck = "mypy --install-types --non-interactive {args:src tests}"
|
|
178
|
-
lint = "ruff format {args:src tests}"
|
|
179
|
-
check = "ruff check --fix {args:src tests}"
|
|
180
|
-
security = "bandit -r {args:src}"
|
|
181
|
-
|
|
182
|
-
[tool.mypy]
|
|
183
|
-
strict = true
|
|
184
|
-
|
|
185
|
-
[[tool.mypy.overrides]]
|
|
186
|
-
module = ["cwl_loader", "cwl_loader.*", "transpiler_mate.runtime.*"]
|
|
187
|
-
ignore_missing_imports = true
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Copyright 2026 Transpiler-Mate
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
from cwl2inputs import __version__
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def test_version_is_defined() -> None:
|
|
19
|
-
assert __version__ == "0.1.0"
|
|
File without changes
|