snakefmt
snakefmt copied to clipboard
Double Line Comment in Run Directive leads to `InvalidPython`
It appears two single-line comments at the start of the run directive lead to a parsing error Invalid Python in the line following after.
The rule runs fine. The error message disappears when any of the two comment lines are deleted.
The error message is very odd as it doesn't even show a line number and file. Yet, I am sure the error originates here.
My Rule
The error message
Yes you're probably correct with the source of the error. This response https://github.com/snakemake/snakefmt/issues/197#issuecomment-1647105838 also applies here.