-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This is with snakefmt v0.10.2.
Minimal example:
rule call_variants:
input:
some_file
threads:
max(
1,
int(config["params"]["call_variants"]["threads"]) -
int(config["params"]["call_variants"]["compress-threads"])
)
gets reformatted to
rule call_variants:
input:
some_file,
threads: max(
1,
int(config["params"]["call_variants"]["threads"])
- int(config["params"]["call_variants"]["compress-threads"]),
)
This cannot be parsed again, as calling snakefmt again on this yields:
snakefmt.exceptions.InvalidParameterSyntax: 5max(
The issue is only appearing due to the long lines. Removing this, computing the needed value beforehand, and instead just having a shorter statement there, works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working