We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
snakefmt cannot format this code:
if 1: rule a: input: a="a", run: for i in range(3): a = print( "a", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ) b = print( print( "sssssssssssssssssssssssssssssssssssssssssssssssss", b="b" ) ) rule b: shell: "echo 1"
However, when I delete a "s" in line 14 or add a comma in line 15, snakefmt will work well. What happened? Thanks
The text was updated successfully, but these errors were encountered:
What do you mean by
snakefmt cannot format this code
Please be more specific and provided the version of snakefmt you are using and any error messages and output
Sorry, something went wrong.
I'm sorry.
I tried to make a demo snakefile with this codes:
and I ran snakemake like this:
snakemake
$ snakefmt -V snakefmt, version 0.8.4 $ snakefmt test.smk [INFO] Writing formatted content to 2023/04/11.smk [INFO] All done 🎉 $ snakefmt test.smk snakefmt.exceptions.InvalidPython: Black error: \`\`\` Cannot parse: 12:0: b = print( \`\`\`
then I reopened this file, and the code changed like this:
Obviously, the code was broken by snakefmt
Thanks. Yep, this is a bug indeed. We'll try getting around to this soon. Thanks for the example.
snakefmt
No branches or pull requests
snakefmt cannot format this code:
However, when I delete a "s" in line 14 or add a comma in line 15, snakefmt will work well. What happened? Thanks
The text was updated successfully, but these errors were encountered: