-
Notifications
You must be signed in to change notification settings - Fork 29
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
Bug: snakefmt erroneously removes double braces, {{x}} -> {x} #207
Comments
I updated the version to 0.8.5 in precommit but I still get the error. Weirdly, when I run |
Ooof that's not good. Sorry it's been hard to find time to work on this tool in recent months. |
No worries at all, I understand it's hard to maintain snakefmt. This bug is really weird, the fact it's only affecting pre-commit could mean something is wrong in that part, or maybe not even within snakefmt. I'll see if I can investigate further, this seems hard to repro for others, I think. |
@corneliusroemer I can't replicate this error in snakefmt 0.8.5. Can you confirm your precommit is definitely using 0.8.5? |
I'm trying to set up a minimal reproducible example but getting some weird pre-commit installed errors like:
Will have a look later and try again when I have more time. |
Might relative to Python version? Can reproduce under Python 3.12 |
Great catch @y9c! |
Snakefmt makes illegal syntax changes:
is formatted to
I.e. the double curly braces around
{{cds}}
are replaced by single curly braces{cds}
.This might be ok to do in Python, but it isn't ok in Snakemake, as I need literal braces here, no replacement at all is wanted.
This happens with the snakefmt in precommit: rev: v0.8.4
The text was updated successfully, but these errors were encountered: