Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
8fc05a5
update module and subworkflow template
nvnieuwk Sep 26, 2025
de4908f
[automated] Update CHANGELOG.md
nf-core-bot Sep 26, 2025
4d94180
Merge branch 'dev' into feat/topics
nvnieuwk Sep 29, 2025
c48f7ac
also emit versions
nvnieuwk Sep 29, 2025
b534065
Merge branch 'dev' into feat/topics
nvnieuwk Sep 30, 2025
62ea7f0
add main.nf linting for topics
nvnieuwk Sep 30, 2025
e490c68
Update modules lint --fix to work with eval
nvnieuwk Sep 30, 2025
5f1af90
Update nf_core/module-template/main.nf
nvnieuwk Oct 1, 2025
1c6f6c9
versions emit should now contain the tool name
nvnieuwk Oct 1, 2025
a749470
Merge branch 'feat/topics' of github.com:nvnieuwk/tools into feat/topics
nvnieuwk Oct 1, 2025
6cb96ee
linting fixes for new versions topics
nvnieuwk Oct 1, 2025
a4d8aac
Merge branch 'dev' into feat/topics
nvnieuwk Oct 8, 2025
5a31432
add topic handling to the main workflow
nvnieuwk Oct 8, 2025
0e726e1
pre-commit
nvnieuwk Oct 8, 2025
249c8eb
add versions file as valid topic output + fix meta yaml template
nvnieuwk Oct 9, 2025
6b02333
update meta yaml versions output on module create
nvnieuwk Oct 9, 2025
f9f42a1
Merge branch 'dev' into feat/topics
nvnieuwk Oct 9, 2025
3095597
pre-commit
nvnieuwk Oct 9, 2025
0eea1b4
pre-commit
nvnieuwk Oct 9, 2025
2d49346
sort versions output
nvnieuwk Oct 13, 2025
c7be4d7
try to add versions on module creation
nvnieuwk Oct 13, 2025
5e1928d
update topics structure + added a check for empty input and output
nvnieuwk Oct 14, 2025
53f356c
Merge branch 'dev' into feat/topics
nvnieuwk Oct 14, 2025
b150244
fix wrongly resolved merge conflict
nvnieuwk Oct 14, 2025
7c954d6
fix module create tests + pre-commit
nvnieuwk Oct 14, 2025
fbe8f63
fix usage of versions string
nvnieuwk Oct 16, 2025
58d4ba7
Merge branch 'dev' into feat/topics
nvnieuwk Oct 16, 2025
914ca61
Merge branch 'dev' into feat/topics
nvnieuwk Oct 28, 2025
93f8cc1
re-allow versions yaml in linting
nvnieuwk Oct 28, 2025
31ae184
add topic linting check
nvnieuwk Oct 28, 2025
efd1176
fix review comments
nvnieuwk Oct 29, 2025
8ffc35f
Merge branch 'dev' into feat/topics
nvnieuwk Oct 29, 2025
4500ae5
fix linting
nvnieuwk Oct 29, 2025
5e39aa4
Merge branch 'feat/topics' of github.com:nvnieuwk/tools into feat/topics
nvnieuwk Oct 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix review comments
  • Loading branch information
nvnieuwk committed Oct 29, 2025
commit efd1176437694ee7f16020493579055ddc14bcc8
5 changes: 3 additions & 2 deletions nf_core/components/nfcore_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,16 @@ def get_outputs_from_main_nf(self):
log.debug(f"Found {len(outputs)} outputs in {self.main_nf}")
self.outputs = outputs

def get_topics_from_main_nf(self):
def get_topics_from_main_nf(self) -> None:
with open(self.main_nf) as f:
data = f.read()
if self.component_type == "modules":
topics = {}
# get topic name from main.nf after "output:". the names are always after "topic:"
if "output:" not in data:
log.debug(f"Could not find any outputs in {self.main_nf}")
return topics
self.topics = topics
return
output_data = data.split("output:")[1].split("when:")[0]
regex_topic = r"topic:\s*([^)\s,]+)"
regex_elements = r"\b(val|path|env|stdout|eval)\s*(\(([^)]+)\)|\s*([^)\s,]+))"
Expand Down
4 changes: 2 additions & 2 deletions nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def _parse_input(self, line_raw):
return inputs


def _parse_output_emits(self, line):
def _parse_output_emits(self, line:str) -> list[str]:
output = []
if "meta" in line:
output.append("meta")
Expand All @@ -732,7 +732,7 @@ def _parse_output_emits(self, line):
return output


def _parse_output_topics(self, line):
def _parse_output_topics(self, line:str) -> list[str]:
output = []
if "meta" in line:
output.append("meta")
Expand Down
Loading