Open
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.