You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snakefmt.exceptions.InvalidPython: Black error:
Cannot parse: 1:0: elif condition_2:
(Note reported line number may be incorrect, as snakefmt could not determine the true line number)
Here, removing either the elif, or the else branch then works. However, interestingly, it also works to replace the pass under condition 2 by another include statement:
I think this is a regression of #115, or an extension of the issue reported there.
Minimal example, using snakefmt v0.10.2:
The error is:
Removing the second conditional part however solves this, despite that part not having anything to do with the condition that causes the problem.
My current workaround is to rewrite the
else
branch asbut since in my actual code I have a few
elif
befor that, this is quite cumbersome.The text was updated successfully, but these errors were encountered: