cwl2codemeta 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.
Files changed (23) hide show
  1. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/CHANGELOG.md +20 -2
  2. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/LICENSE +1 -1
  3. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/NOTICE +1 -1
  4. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/PKG-INFO +20 -8
  5. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/README.md +10 -1
  6. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/explanation/architecture.md +1 -1
  7. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/how-to/install.md +1 -1
  8. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/how-to/use-cli.md +1 -1
  9. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/index.md +6 -1
  10. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/reference/api.md +1 -1
  11. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/tutorials/first-steps.md +1 -1
  12. cwl2codemeta-0.2.0/pyproject.toml +325 -0
  13. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/src/cwl2codemeta/__about__.py +2 -2
  14. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/src/cwl2codemeta/__init__.py +1 -1
  15. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/src/cwl2codemeta/plugin.py +6 -16
  16. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/tests/test_plugin.py +5 -2
  17. cwl2codemeta-0.1.0/pyproject.toml +0 -179
  18. cwl2codemeta-0.1.0/tests/test_version.py +0 -19
  19. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/.gitignore +0 -0
  20. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/explanation/index.md +0 -0
  21. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/how-to/index.md +0 -0
  22. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/reference/index.md +0 -0
  23. {cwl2codemeta-0.1.0 → cwl2codemeta-0.2.0}/docs/tutorials/index.md +0 -0
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -37,11 +37,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
37
37
 
38
38
  ### Added
39
39
 
40
+ ## [0.2.0] - 2026-12-03
41
+
42
+ ### Changed
43
+
44
+ - Bump the package minor version from 0.1.1 to 0.2.0.
45
+ - Require Python 3.11 or newer, remove the Python 3.10 classifier, and add the Python 3.15 classifier.
46
+ - Set the Hatch test matrix and package workflow Python matrix to Python 3.11–3.15.
47
+ - Remove the local editable `transpiler-mate-api` override from `[tool.uv.sources]`.
48
+ - Document Python version support in the README and documentation landing page with notices for version 0.2.0.
49
+
50
+ ## [0.1.1] - 2026-09-27
51
+
52
+ ### Changed
53
+
54
+ * Improve type annotations and internal code quality by addressing mypy, Ruff, and Bandit findings, without changing public APIs or runtime behavior.
55
+
40
56
  ## [0.1.0] - 2026-09-09
41
57
 
42
58
  ### Added
43
59
 
44
60
  - Initial project release.
45
61
 
46
- [Unreleased]: https://github.com/Transpiler-Mate/cwl2codemeta/compare/0.1.0...HEAD
62
+ [Unreleased]: https://github.com/Transpiler-Mate/cwl2codemeta/compare/0.2.0...HEAD
63
+ [0.2.0]: https://github.com/Transpiler-Mate/cwl2codemeta/compare/0.1.1...0.2.0
64
+ [0.1.1]: https://github.com/Transpiler-Mate/cwl2codemeta/compare/0.1.0...0.1.1
47
65
  [0.1.0]: https://github.com/Transpiler-Mate/cwl2codemeta/releases/tag/0.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 Transpiler-Mate
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,4 +1,4 @@
1
1
  CodeMeta Transpiler-Mate Plugin
2
- Copyright 2026 Transpiler-Mate
2
+ Copyright 2026 Terradue
3
3
 
4
4
  This product includes software developed by Transpiler-Mate.
@@ -1,36 +1,39 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cwl2codemeta
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Convert CWL Schema.org metadata to CodeMeta 3.0 JSON-LD.
5
5
  Project-URL: Homepage, https://github.com/Transpiler-Mate/cwl2codemeta
6
6
  Project-URL: Documentation, https://Transpiler-Mate.github.io/cwl2codemeta/
7
7
  Project-URL: Repository, https://github.com/Transpiler-Mate/cwl2codemeta
8
8
  Project-URL: Issues, https://github.com/Transpiler-Mate/cwl2codemeta/issues
9
9
  Project-URL: Changelog, https://github.com/Transpiler-Mate/cwl2codemeta/blob/main/CHANGELOG.md
10
- Author-email: Transpiler-Mate <info@terradue.com>
10
+ Author-email: Terradue srl <info@terradue.com>, Fabrice Brito <fabrice.brito@terradue.com>, Simone Tripodi <simone.tripodi@terradue.com>
11
11
  License-Expression: Apache-2.0
12
12
  License-File: LICENSE
13
- License-File: NOTICE
13
+ Keywords: commonwl,cwl,transpiler-mate
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.10
24
+ Requires-Python: >=3.11
26
25
  Requires-Dist: giturlparse>=0.15.0
27
26
  Requires-Dist: loguru==0.7.3
28
27
  Requires-Dist: pyld>=3.1.0
29
- Requires-Dist: transpiler-mate-api==1.0.0
28
+ Requires-Dist: transpiler-mate-api>=1.1.0
29
+ Provides-Extra: test
30
+ Requires-Dist: click<9,>=8.4.2; extra == 'test'
31
+ Requires-Dist: pytest-cov<8,>=6.2; extra == 'test'
32
+ Requires-Dist: pytest<10,>=8.4; extra == 'test'
30
33
  Description-Content-Type: text/markdown
31
34
 
32
35
  <!--
33
- Copyright 2026 Transpiler-Mate
36
+ Copyright 2026 Terradue
34
37
 
35
38
  Licensed under the Apache License, Version 2.0 (the "License");
36
39
  you may not use this file except in compliance with the License.
@@ -47,6 +50,11 @@ limitations under the License.
47
50
 
48
51
  # CWL to CodeMeta
49
52
 
53
+ [![PyPI - Version](https://img.shields.io/pypi/v/cwl2codemeta.svg)](https://pypi.org/project/cwl2codemeta)
54
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cwl2codemeta.svg)](https://pypi.org/project/cwl2codemeta)
55
+ [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/transpiler-mate/cwl2codemeta/package.yaml?branch=develop&event=push&label=build&logo=githubactions)](https://github.com/transpiler-mate/cwl2codemeta/actions/workflows/package.yaml?query=branch%3Adevelop)
56
+ [![Code coverage](https://img.shields.io/codecov/c/github/transpiler-mate/cwl2codemeta/develop?logo=codecov)](https://app.codecov.io/gh/transpiler-mate/cwl2codemeta/tree/develop)
57
+
50
58
  `cwl2codemeta` is a Transpiler-Mate plugin that converts Schema.org metadata
51
59
  embedded in a Common Workflow Language (CWL) document into a CodeMeta 3.0
52
60
  JSON-LD document.
@@ -60,6 +68,10 @@ When a source repository is supplied, the output is a
60
68
  metadata. GitHub and GitLab repository URLs are also used to derive links for
61
69
  continuous integration, issue tracking, and related project pages.
62
70
 
71
+ > [!IMPORTANT]
72
+ > Starting with version 0.2.0, Python 3.10 support has been removed because it has
73
+ > reached end of life (EOL). Python 3.15 is now supported.
74
+
63
75
  ## Installation
64
76
 
65
77
  Install the plugin and a compatible Transpiler-Mate runtime in the same Python
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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,6 +16,11 @@ limitations under the License.
16
16
 
17
17
  # CWL to CodeMeta
18
18
 
19
+ [![PyPI - Version](https://img.shields.io/pypi/v/cwl2codemeta.svg)](https://pypi.org/project/cwl2codemeta)
20
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cwl2codemeta.svg)](https://pypi.org/project/cwl2codemeta)
21
+ [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/transpiler-mate/cwl2codemeta/package.yaml?branch=develop&event=push&label=build&logo=githubactions)](https://github.com/transpiler-mate/cwl2codemeta/actions/workflows/package.yaml?query=branch%3Adevelop)
22
+ [![Code coverage](https://img.shields.io/codecov/c/github/transpiler-mate/cwl2codemeta/develop?logo=codecov)](https://app.codecov.io/gh/transpiler-mate/cwl2codemeta/tree/develop)
23
+
19
24
  `cwl2codemeta` is a Transpiler-Mate plugin that converts Schema.org metadata
20
25
  embedded in a Common Workflow Language (CWL) document into a CodeMeta 3.0
21
26
  JSON-LD document.
@@ -29,6 +34,10 @@ When a source repository is supplied, the output is a
29
34
  metadata. GitHub and GitLab repository URLs are also used to derive links for
30
35
  continuous integration, issue tracking, and related project pages.
31
36
 
37
+ > [!IMPORTANT]
38
+ > Starting with version 0.2.0, Python 3.10 support has been removed because it has
39
+ > reached end of life (EOL). Python 3.15 is now supported.
40
+
32
41
  ## Installation
33
42
 
34
43
  Install the plugin and a compatible Transpiler-Mate runtime in the same Python
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -49,6 +49,11 @@ The actual `targetProduct` contains all supported metadata supplied by the CWL
49
49
  document. GitHub and GitLab repository URLs also produce platform-specific
50
50
  project links.
51
51
 
52
+ !!! important "Python version support"
53
+
54
+ Starting with version 0.2.0, Python 3.10 support has been removed because it has
55
+ reached end of life (EOL). Python 3.15 is now supported.
56
+
52
57
  ## Choose your path
53
58
 
54
59
  - [Convert your first CWL document](tutorials/first-steps.md).
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright 2026 Transpiler-Mate
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.
@@ -0,0 +1,325 @@
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.32.4"]
17
+ build-backend = "hatchling.build"
18
+
19
+ [project]
20
+ name = "cwl2codemeta"
21
+ dynamic = ["version"]
22
+ description = "Convert CWL Schema.org metadata to CodeMeta 3.0 JSON-LD."
23
+ readme = "README.md"
24
+ requires-python = ">=3.11"
25
+ license = "Apache-2.0"
26
+ license-files = ["LICENSE"]
27
+ keywords = [
28
+ "cwl",
29
+ "commonwl",
30
+ "transpiler-mate"
31
+ ]
32
+ authors = [
33
+ { name = "Terradue srl", email = "info@terradue.com" },
34
+ { name = "Fabrice Brito", email = "fabrice.brito@terradue.com" },
35
+ { name = "Simone Tripodi", email = "simone.tripodi@terradue.com" }
36
+ ]
37
+ classifiers = [
38
+ "Development Status :: 4 - Beta",
39
+ "Intended Audience :: Developers",
40
+ "Programming Language :: Python",
41
+ "Programming Language :: Python :: 3.11",
42
+ "Programming Language :: Python :: 3.12",
43
+ "Programming Language :: Python :: 3.13",
44
+ "Programming Language :: Python :: 3.14",
45
+ "Programming Language :: Python :: 3.15",
46
+ "Programming Language :: Python :: Implementation :: CPython",
47
+ "Programming Language :: Python :: Implementation :: PyPy",
48
+ ]
49
+ dependencies = [
50
+ "giturlparse>=0.15.0",
51
+ "loguru==0.7.3",
52
+ "PyLD>=3.1.0",
53
+ "transpiler-mate-api>=1.1.0",
54
+ ]
55
+
56
+ # ---------------------------------------------------------------------------
57
+ # Transpiler Mate plugin entry point
58
+ # ---------------------------------------------------------------------------
59
+
60
+ [project.entry-points."transpiler_mate.plugins"]
61
+ cwl2codemeta = "cwl2codemeta.plugin:cwl2codemeta"
62
+
63
+ # ---------------------------------------------------------------------------
64
+ # Project Refs
65
+ # ---------------------------------------------------------------------------
66
+
67
+ [project.urls]
68
+ Homepage = "https://github.com/Transpiler-Mate/cwl2codemeta"
69
+ Documentation = "https://Transpiler-Mate.github.io/cwl2codemeta/"
70
+ Repository = "https://github.com/Transpiler-Mate/cwl2codemeta"
71
+ Issues = "https://github.com/Transpiler-Mate/cwl2codemeta/issues"
72
+ Changelog = "https://github.com/Transpiler-Mate/cwl2codemeta/blob/main/CHANGELOG.md"
73
+
74
+ # ---------------------------------------------------------------------------
75
+ # Versioning and packaging
76
+ # ---------------------------------------------------------------------------
77
+
78
+ [tool.hatch.version]
79
+ path = "src/cwl2codemeta/__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/cwl2codemeta"]
95
+
96
+ # ---------------------------------------------------------------------------
97
+ # Coverage
98
+ # ---------------------------------------------------------------------------
99
+
100
+ [tool.coverage.run]
101
+ source_pkgs = ["cwl2codemeta", "tests"]
102
+ branch = true
103
+ parallel = true
104
+ omit = [
105
+ "src/cwl2codemeta/__about__.py",
106
+ ]
107
+
108
+ [tool.coverage.paths]
109
+ cwl2codemeta = [
110
+ "src/cwl2codemeta",
111
+ "*/cwl2codemeta/src/cwl2codemeta"
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
+ dependencies = [
132
+ "click>=8.4.2,<9",
133
+ "pytest>=8.4,<10",
134
+ "pytest-cov>=6.2,<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=cwl2codemeta --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
+ dependencies = [
167
+ "mypy>=2.3.0",
168
+ "types-jsonschema>=4.26.0.20260518",
169
+ "ruff>=0.16.0",
170
+ "bandit>=1.9.4",
171
+ "click>=8.4.2,<9",
172
+ "pytest>=8.4,<10",
173
+ ]
174
+
175
+ # ---------------------------------------------------------------------------
176
+ # Ruff
177
+ # ---------------------------------------------------------------------------
178
+
179
+ [tool.ruff]
180
+ line-length = 100
181
+
182
+ [tool.ruff.lint]
183
+ # Start with the essential rules
184
+ select = [
185
+ # Core correctness
186
+ "F", # Pyflakes
187
+ "E", # pycodestyle errors
188
+ "W", # pycodestyle warnings
189
+
190
+ # Imports and modernization
191
+ "I", # isort
192
+ "UP", # pyupgrade
193
+ "FA", # future annotations
194
+ "TC", # type-checking imports
195
+
196
+ # Bugs and correctness
197
+ "B", # flake8-bugbear
198
+ "RET", # flake8-return
199
+ "PTH", # pathlib usage
200
+ "C4", # comprehensions
201
+
202
+ # Simplification and readability
203
+ "SIM", # flake8-simplify
204
+
205
+ # Complexity
206
+ "C90", # McCabe complexity
207
+
208
+ # Pylint-derived checks
209
+ "PLE", # Pylint errors
210
+ "PLW", # Pylint warnings
211
+ "PLR", # Pylint refactor/design checks
212
+
213
+ # Performance and Ruff-specific quality checks
214
+ "PERF",
215
+ "RUF",
216
+ ]
217
+
218
+ ignore = [
219
+ # Formatter-controlled rules
220
+ "E501", # line length
221
+ "W191", # tab indentation
222
+ "E111", # indentation
223
+ "E114", # indentation
224
+ "E117", # over-indented
225
+
226
+ # Too opinionated for a general project template.
227
+ # Enable per repository if useful.
228
+ # "PLR0904", # too many public methods
229
+ ]
230
+
231
+ [tool.ruff.lint.mccabe]
232
+ # Flag errors (C901) whenever complexity exceeds 10 (default is 10)
233
+ max-complexity = 7
234
+
235
+ [tool.ruff.lint.pylint]
236
+ # Keep these deliberately stricter than Pylint defaults.
237
+ max-args = 6
238
+ max-branches = 10
239
+ max-returns = 6
240
+ max-statements = 40
241
+
242
+ # ---------------------------------------------------------------------------
243
+ # Mypy
244
+ # ---------------------------------------------------------------------------
245
+
246
+ [tool.mypy]
247
+
248
+ # Strict typing is the default for new Terradue Python projects.
249
+ strict = true
250
+
251
+ # Improve diagnostics.
252
+ pretty = true
253
+ show_error_codes = true
254
+ show_error_context = true
255
+ warn_unreachable = true
256
+
257
+ # Avoid silently accepting untyped third-party APIs.
258
+ ignore_missing_imports = false
259
+
260
+ # Files checked by default.
261
+ files = [
262
+ "src/cwl2codemeta",
263
+ "tests",
264
+ ]
265
+
266
+ # These dependencies do not ship type stubs or a py.typed marker.
267
+ # Limit missing-import exemptions to these untyped third-party boundaries.
268
+ [[tool.mypy.overrides]]
269
+ module = ["giturlparse", "pyld"]
270
+ ignore_missing_imports = true
271
+
272
+ [tool.hatch.envs.dev.scripts]
273
+ # ---------------------------------------------------------------------------
274
+ # Developer commands
275
+ #
276
+ # These commands are allowed to modify files.
277
+ # ---------------------------------------------------------------------------
278
+
279
+ format = "ruff format {args:src tests}"
280
+
281
+ fix = [
282
+ "ruff check --fix {args:src tests}",
283
+ "ruff format {args:src tests}",
284
+ ]
285
+
286
+ # ---------------------------------------------------------------------------
287
+ # Verification commands
288
+ #
289
+ # These commands MUST NOT modify files and are suitable for CI.
290
+ # ---------------------------------------------------------------------------
291
+
292
+ format-check = "ruff format --check {args:src tests}"
293
+
294
+ lint = "ruff check {args:src tests}"
295
+ lint-check = "ruff check {args:src tests}"
296
+ design-check = "ruff check --select C90,PLR {args:src tests}"
297
+
298
+ typecheck = "mypy {args:src tests}"
299
+
300
+ security = "bandit -r {args:src}"
301
+
302
+ # Run the complete static quality gate.
303
+ quality = [
304
+ "ruff format --check {args:src tests}",
305
+ "ruff check {args:src tests}",
306
+ "mypy {args:src tests}",
307
+ "bandit -r {args:src}",
308
+ ]
309
+
310
+ # Complete local/CI validation including tests.
311
+ check = [
312
+ "ruff format --check {args:src tests}",
313
+ "ruff check {args:src tests}",
314
+ "mypy {args:src tests}",
315
+ "bandit -r {args:src}",
316
+ "pytest {args:tests}",
317
+ ]
318
+
319
+ # Preserve editable-install test extras and uv's local wheel resolution.
320
+ [project.optional-dependencies]
321
+ test = [
322
+ "click>=8.4.2,<9",
323
+ "pytest>=8.4,<10",
324
+ "pytest-cov>=6.2,<8"
325
+ ]
@@ -1,4 +1,4 @@
1
- # Copyright 2026 Transpiler-Mate
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 CodeMeta Transpiler-Mate Plugin."""
16
16
 
17
- __version__ = "0.1.0"
17
+ __version__ = "0.2.0"
@@ -1,4 +1,4 @@
1
- # Copyright 2026 Transpiler-Mate
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2026 Transpiler-Mate
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.
@@ -69,9 +69,7 @@ def cwl2codemeta(context: TranspilerContext, options: CWL2CodeMetaOptions) -> No
69
69
 
70
70
  try:
71
71
  if options.code_repository:
72
- logger.debug(
73
- f"code_repository detected, analyzing: {options.code_repository}"
74
- )
72
+ logger.debug(f"code_repository detected, analyzing: {options.code_repository}")
75
73
 
76
74
  parsed_url: GitUrlParsed = gitparse(options.code_repository)
77
75
 
@@ -83,9 +81,7 @@ def cwl2codemeta(context: TranspilerContext, options: CWL2CodeMetaOptions) -> No
83
81
 
84
82
  match parsed_url.platform:
85
83
  case "github":
86
- continuous_integration = parsed_url.url2https.replace(
87
- ".git", "/actions"
88
- )
84
+ continuous_integration = parsed_url.url2https.replace(".git", "/actions")
89
85
  issue_tracker = parsed_url.url2https.replace(".git", "/issues")
90
86
  related_links = [
91
87
  parsed_url.url2https.replace(".git", page)
@@ -93,9 +89,7 @@ def cwl2codemeta(context: TranspilerContext, options: CWL2CodeMetaOptions) -> No
93
89
  ]
94
90
 
95
91
  case "gitlab":
96
- continuous_integration = parsed_url.url2https.replace(
97
- ".git", "/-/pipelines"
98
- )
92
+ continuous_integration = parsed_url.url2https.replace(".git", "/-/pipelines")
99
93
  issue_tracker = parsed_url.url2https.replace(".git", "/-/issues")
100
94
  related_links = [
101
95
  parsed_url.url2https.replace(".git", page)
@@ -135,9 +129,7 @@ def cwl2codemeta(context: TranspilerContext, options: CWL2CodeMetaOptions) -> No
135
129
 
136
130
  if context.metadata.keywords and isinstance(context.metadata.keywords, list):
137
131
  compacted["keywords"] = list(
138
- filter(
139
- lambda keyword: isinstance(keyword, str), context.metadata.keywords
140
- )
132
+ filter(lambda keyword: isinstance(keyword, str), context.metadata.keywords)
141
133
  )
142
134
 
143
135
  options.output.parent.mkdir(parents=True, exist_ok=True)
@@ -146,9 +138,7 @@ def cwl2codemeta(context: TranspilerContext, options: CWL2CodeMetaOptions) -> No
146
138
  with options.output.open("w") as output_stream:
147
139
  json.dump(compacted, output_stream, indent=2)
148
140
 
149
- logger.success(
150
- f"CodeMeta metadata successfully serialized to {options.output.absolute()}"
151
- )
141
+ logger.success(f"CodeMeta metadata successfully serialized to {options.output.absolute()}")
152
142
  except Exception as e:
153
143
  raise PluginExecutionError(
154
144
  f"An error occurred when serializing to {options.output.absolute()}, see nested exception"
@@ -1,4 +1,4 @@
1
- # Copyright 2026 Transpiler-Mate
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.
@@ -22,7 +22,10 @@ from cwl2codemeta.plugin import CWL2CodeMetaOptions, cwl2codemeta
22
22
 
23
23
 
24
24
  class MetadataStub:
25
- keywords = ["workflow", 42]
25
+ """Supply metadata with mixed keyword values for serialization tests."""
26
+
27
+ def __init__(self) -> None:
28
+ self.keywords: list[str | int] = ["workflow", 42]
26
29
 
27
30
  def model_dump(self, **_: Any) -> dict[str, Any]:
28
31
  return {
@@ -1,179 +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 = "cwl2codemeta"
21
- dynamic = ["version"]
22
- description = "Convert CWL Schema.org metadata to CodeMeta 3.0 JSON-LD."
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
- "giturlparse>=0.15.0",
45
- "loguru==0.7.3",
46
- "PyLD>=3.1.0",
47
- "transpiler-mate-api==1.0.0",
48
- ]
49
-
50
- [project.entry-points."transpiler_mate.plugins"]
51
- cwl2codemeta = "cwl2codemeta.plugin:cwl2codemeta"
52
-
53
- [project.urls]
54
- Homepage = "https://github.com/Transpiler-Mate/cwl2codemeta"
55
- Documentation = "https://Transpiler-Mate.github.io/cwl2codemeta/"
56
- Repository = "https://github.com/Transpiler-Mate/cwl2codemeta"
57
- Issues = "https://github.com/Transpiler-Mate/cwl2codemeta/issues"
58
- Changelog = "https://github.com/Transpiler-Mate/cwl2codemeta/blob/main/CHANGELOG.md"
59
-
60
- [tool.hatch.version]
61
- path = "src/cwl2codemeta/__about__.py"
62
-
63
- [tool.hatch.build.targets.sdist]
64
- include = [
65
- "/src",
66
- "/tests",
67
- "/docs",
68
- "/README.md",
69
- "/CHANGELOG.md",
70
- "/LICENSE",
71
- "/NOTICE",
72
- "/pyproject.toml",
73
- ]
74
-
75
- [tool.hatch.build.targets.wheel]
76
- packages = ["src/cwl2codemeta"]
77
-
78
- [tool.hatch.envs.types]
79
- extra-dependencies = [
80
- "mypy==1.19.1",
81
- ]
82
- [tool.hatch.envs.types.scripts]
83
- check = "mypy --install-types --non-interactive {args:src/cwl2codemeta tests}"
84
-
85
- [tool.coverage.run]
86
- source_pkgs = ["cwl2codemeta", "tests"]
87
- branch = true
88
- parallel = true
89
- omit = [
90
- "src/cwl2codemeta/__about__.py",
91
- ]
92
-
93
- [tool.coverage.paths]
94
- cwl2codemeta = ["src/cwl2codemeta", "*/cwl2codemeta/src/cwl2codemeta"]
95
-
96
- [tool.coverage.report]
97
- exclude_lines = [
98
- "no cov",
99
- "if __name__ == .__main__.:",
100
- "if TYPE_CHECKING:",
101
- ]
102
-
103
- [tool.hatch.envs.test]
104
- skip-install = false
105
- dependencies = [
106
- "pytest>=8.4,<10",
107
- "pytest-cov>=6.2,<8",
108
- ]
109
-
110
- [tool.mypy]
111
- strict = true
112
-
113
- [[tool.mypy.overrides]]
114
- module = [
115
- "giturlparse.*",
116
- "pyld.*",
117
- ]
118
- ignore_missing_imports = true
119
-
120
- [tool.hatch.envs.test.scripts]
121
- test = "pytest {args:tests}"
122
- testv = "pytest --verbose {args:tests}"
123
- test-cov = "pytest --cov=cwl2codemeta --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
- skip-install = false
138
- dependencies = [
139
- "mypy>=2.3.0",
140
- "ruff>=0.16.0",
141
- "bandit>=1.9.4",
142
- ]
143
-
144
- [tool.ruff.lint]
145
- # Start with the essential rules
146
- select = [
147
- "F", # Pyflakes (Critical for bugs)
148
- "E", # pycodestyle Errors
149
- "W", # pycodestyle Warnings
150
- "I", # isort (Import sorting)
151
- "UP", # pyupgrade (Modern syntax)
152
- "B", # flake8-bugbear (Common bugs)
153
- "C4", # flake8-comprehensions
154
- "SIM", # flake8-simplify
155
- "FA", # flake8-future-annotations
156
- "TC", # flake8-type-checking
157
- "PTH", # flake8-use-pathlib
158
- "RET", # flake8-return
159
- "C90", # McCabe Complexity (Enables C901)
160
- ]
161
-
162
- # Ignore rules that conflict with the formatter (Ruff Format/Black)
163
- ignore = [
164
- "E501", # Line too long (handled by formatter)
165
- "W191", # Tab indentation (handled by formatter)
166
- "E111", # Indentation issues (handled by formatter)
167
- "E114", # Indentation issues (handled by formatter)
168
- "E117", # Over-indented (handled by formatter)
169
- ]
170
-
171
- [tool.ruff.lint.mccabe]
172
- # Flag errors (C901) whenever complexity exceeds 10 (default is 10)
173
- max-complexity = 10
174
-
175
- [tool.hatch.envs.dev.scripts]
176
- typecheck = "mypy --install-types --non-interactive {args:src tests}"
177
- lint = "ruff format {args:src tests}"
178
- check = "ruff check --fix {args:src tests}"
179
- security = "bandit -r {args:src}"
@@ -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 cwl2codemeta import __version__
16
-
17
-
18
- def test_version_is_defined() -> None:
19
- assert __version__ == "0.1.0"
File without changes