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
I noticed the indentation in the run section of my rule was broken after formatting:
run
$ snakefmt --version snakefmt, version 0.8.0
$ cat Snakefile rule test: input: gfa="mdbg.gfa", output: gfa="mdbg.no_seq.gfa", run: with open(input.gfa, "rt") as fi, open(output.gfa, "wt") as fo: for line in fi: if line.startswith("S"): record_type, name, sequence, *__ = line.strip("\n").split( "\t", maxsplit=3 ) new_line = ( "\t".join([record_type, name, "*", f"LN:i:{len(sequence)}"]) + "\n" ) else: new_line = line fo.write(new_line)
Please note the line starting with new _line = :
new _line =
$ snakefmt - < Snakefile rule test: input: gfa="mdbg.gfa", output: gfa="mdbg.no_seq.gfa", run: with open(input.gfa, "rt") as fi, open(output.gfa, "wt") as fo: for line in fi: if line.startswith("S"): record_type, name, sequence, *__ = line.strip("\n").split( "\t", maxsplit=3 ) new_line = ( "\t".join([record_type, name, "*", f"LN:i:{len(sequence)}"]) + "\n" ) else: new_line = line fo.write(new_line) [INFO] All done 🎉
The text was updated successfully, but these errors were encountered:
Sorry about this @jzhang-dev. We've got a few indentation-related problems currently, we'll try and get to the bottom of this soon
Sorry, something went wrong.
add failing test for snakemake#171
b3bd5ea
fix: indenation of line-wrapped code [snakemake#171] (#7)
a081d62
* add failing test for snakemake#171 * dont assume lagging indentation is same as middle
fix: indenation of line-wrapped code [#171] (#7)
f524574
* add failing test for #171 * dont assume lagging indentation is same as middle
Successfully merging a pull request may close this issue.
I noticed the indentation in the
run
section of my rule was broken after formatting:Please note the line starting with
new _line =
:The text was updated successfully, but these errors were encountered: