Skip to content

Commit ade32c3

Browse files
committed
Make curation fail; add docstrings
1 parent 0a7d863 commit ade32c3

5 files changed

Lines changed: 24 additions & 8 deletions

File tree

.github/workflows/hermes-run.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ jobs:
2020
- name: Print Python version
2121
run: python -c "import sys; print(sys.version)"
2222
- name: Install package
23-
run: pip install -e .
24-
- run: hermes clean || (cat hermes.log && false)
25-
- run: hermes harvest || (cat hermes.log && false)
26-
- run: hermes process || (cat hermes.log && false)
27-
- run: hermes curate || (cat hermes.log && false)
23+
run: python -m pip install -e .
24+
- name: hermes clean
25+
run: hermes clean || (cat hermes.log && false)
26+
- name: hermes harvest
27+
run: hermes harvest || (cat hermes.log && false)
28+
- name: hermes process
29+
run: hermes process || (cat hermes.log && false)
30+
- name: hermes curate
31+
run: hermes curate || (cat hermes.log && false)

hermes.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# SPDX-License-Identifier: CC0-1.0
55

66
[curate]
7-
method = "software-card"
7+
method = "software_card"

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ homepage = "https://github.com/softwarepub/hermes-plugin-software-card"
3737
repository = "https://github.com/softwarepub/hermes-plugin-software-card.git"
3838

3939
[project.entry-points."hermes.curate"]
40-
software-card = "hermes_plugin_software_card.curate:SoftwareCaRDCuratePlugin"
40+
software_card = "hermes_plugin_software_card.curate:SoftwareCaRDCuratePlugin"
4141

4242
[tool.ruff.lint]
4343
select = [
@@ -48,6 +48,7 @@ select = [
4848
"C4",
4949
"C90",
5050
"COM",
51+
"D",
5152
"DTZ",
5253
"E",
5354
"EM",
@@ -78,4 +79,7 @@ select = [
7879
]
7980
ignore = ["COM812"]
8081

82+
[tool.ruff.lint.pydocstyle]
83+
convention = "pep257"
84+
8185
[tool.setuptools_scm]

src/hermes_plugin_software_card/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
# SPDX-FileContributor: David Pape
33
#
44
# SPDX-License-Identifier: Apache-2.0
5+
6+
"""HERMES plugins for the Software CaRD framework."""

src/hermes_plugin_software_card/curate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
#
44
# SPDX-License-Identifier: Apache-2.0
55

6+
"""Module containing the Software CaRD curation plugin for HERMES."""
7+
68
from hermes.commands.curate.base import BaseCuratePlugin
79

810

911
class SoftwareCaRDCuratePlugin(BaseCuratePlugin):
10-
pass
12+
"""Software CaRD curation plugin."""
13+
14+
def is_publication_approved(self):
15+
"""Decide whether the publication of the software is approved."""
16+
return False

0 commit comments

Comments
 (0)