github / super-linter Public
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
Fix file detection issues of Snakemake linter/formatter #713
Conversation
|
@kpj Interesting, it didn't seem to exit with error code... |
|
@kpj issue was we were locked on 0.1.4 of snakefmt with that error, updated to 0.1.5 |
|
@kpj so it seems the root of the issue:
bash-5.0# snakefmt --check --diff --config action/lib/.automation/.snakefmt.toml bad.smk
[WARNING] Both --check and --diff/--compact-diff given. Only running --check...
[INFO] 1 file(s) would be changed 😬
bash-5.0# echo $?
1
bash-5.0# snakefmt --diff --config action/lib/.automation/.snakefmt.toml bad.smk
=====> Diff for bad.smk <=====
rule all:
input:
- file1='result.txt',
? ^ ^
+ file1="result.txt",
? ^ ^
+
rule simulation:
output:
- file1="result.txt"
+ file1="result.txt",
? +
shell:
"""
touch {output}
"""
-
[INFO] All done 🎉
bash-5.0# echo $?
0
bash-5.0# |
Yes, I had reported the issue (snakemake/snakefmt#65) and now everything should be fine. Thanks for updating the version
You are right, I have submitted another issue: snakemake/snakefmt#68 |
|
Now that Another issue I noticed is that |
This PR makes the Snakemake linter/formatter work by fixing issues with the file detection.
In particular, it does the following:
FILE_ARRAY_SNAKEMAKEproperlyPlease let me know if there are any other things to repair😄