Skip to content

Commit

Permalink
fix: fixed detection of norun rules inside of modules (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Apr 5, 2022
1 parent fef74d6 commit d2223d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 5 additions & 4 deletions snakemake/parser.py
Expand Up @@ -955,11 +955,12 @@ def end(self):
)
yield "\n"

# yield with block
yield from self._with_block
if self._with_block:
# yield with block
yield from self._with_block

yield "@workflow.run"
yield "\n"
yield "@workflow.run"
yield "\n"

rulename = self.rules[0]
if rulename == "*":
Expand Down
7 changes: 6 additions & 1 deletion tests/test_modules_all/module-test/Snakefile
Expand Up @@ -5,8 +5,13 @@ def some_func():
return 15


rule all:
input:
"results/test.out"


rule a:
output:
"results/test.out"
shell:
"echo {config[test]} > {output}"
"echo {config[test]} > {output}"

0 comments on commit d2223d4

Please sign in to comment.