-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you help me to understand the output of snakefmt when it returns an error? #115
Comments
By the way is there something wrong with having if, else statements around rules. The code works. |
Could you paste a minimum reproducible example, or your Snakefile? |
here my example, I know it's not minimum
I found the error in my file. Probably double-nested rule definitions are not recommended. |
Found it too, the error occurs with an if True:
rule break_snakefmt_044:
shell: ""
else:
pass Error: snakefmt.exceptions.InvalidPython: Got error:
'''
Cannot parse: 1:0: else:
'''
while formatting code with black. |
I got erros like this one:
snakefmt.exceptions.InvalidPython: Got error:
while formatting code with black.
I don't know to which else statement the error relates.
The text was updated successfully, but these errors were encountered: