Skip to content

Commit

Permalink
fix: fix missed wildcard constraints when using local rule inheritance (
Browse files Browse the repository at this point in the history
#2242)

### Description

<!--Add a description of your PR here-->

### QC
<!-- Make sure that you can tick the boxes below. -->

* [x] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [x] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).
  • Loading branch information
johanneskoester committed May 3, 2023
1 parent c7ae161 commit 8e94785
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snakemake/modules.py
Expand Up @@ -165,13 +165,15 @@ def __init__(
self.path_modifier = parent_modifier.path_modifier
self.replace_wrapper_tag = parent_modifier.replace_wrapper_tag
self.namespace = parent_modifier.namespace
self.wildcard_constraints = parent_modifier.wildcard_constraints
self.rules = parent_modifier.rules
else:
# default settings for globals if not inheriting from parent
self.globals = (
globals if globals is not None else dict(workflow.vanilla_globals)
)
self.wildcard_constraints = dict()
self.rules = set()
self.wildcard_constraints = dict()
self.rules = set()

self.workflow = workflow
self.base_snakefile = base_snakefile
Expand Down

0 comments on commit 8e94785

Please sign in to comment.