Skip to content

Commit

Permalink
Merge pull request #10 from mirpedrol/safe-fixes
Browse files Browse the repository at this point in the history
Safe fixes
  • Loading branch information
mirpedrol authored Nov 27, 2024
2 parents 404ec47 + b020b95 commit 7f2d89c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
- Add command `nf-class subworkflows expand-class` [#2](https://github.com/mirpedrol/nf-class/pull/2)
- Add pytests [#5](https://github.com/mirpedrol/nf-class/pull/5)
- Handle composed modules when expanding a subworkflow [#6](https://github.com/mirpedrol/nf-class/pull/6)
- Modify expand-class command to avoid conditional includes [#8](https://github.com/mirpedrol/nf-class/pull/8)
- Modify `expand-class` command to avoid conditional includes [#8](https://github.com/mirpedrol/nf-class/pull/8)
- Don't allow expanding a subworkflow in a pipelines repo & pin nf-core version [#10](https://github.com/mirpedrol/nf-class/pull/10)
3 changes: 3 additions & 0 deletions nf_class/subworkflows/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def __init__(

def expand_class(self):
"""Expand the subworkflow with modules from a class."""
if self.repo_type == "pipelines":
raise UserWarning("Expanding a subworkflow from a class is not supported for pipelines.")

if self.directory != ".":
log.info(f"Base directory: '{self.directory}'")

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nf-core
nf-core==3.0.*

0 comments on commit 7f2d89c

Please sign in to comment.