Skip to content
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

f-strings with triple quoted strings break #55

Closed
siebrenf opened this issue Jun 26, 2020 · 1 comment · Fixed by #56
Closed

f-strings with triple quoted strings break #55

siebrenf opened this issue Jun 26, 2020 · 1 comment · Fixed by #56
Assignees

Comments

@siebrenf
Copy link

siebrenf commented Jun 26, 2020

Couldn't wait to use this!

Conda install, version 0.1.0

Triple quoted f-strings seem to break in rules, both when using run and shell.
Below are two minimal examples. Adding braces to the string does not alter the behavior.

run before:

rule test:
    run:
        shell(f"""shell stuff""")

run after:

rule test:
    run:
        shell(f        """shell stuff"""        )

shell before:

rule someshellrule:
    shell:
        f"""shell stuff"""

shell after:

rule somerunrule:
    shell:
        f        """shell stuff"""
@bricoletc
Copy link
Collaborator

Thanks for spotting this @siebrenf !
It's clearly a bug and fixed in d7bab0d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants