Open HDembinski opened 4 years ago
Are Snakefiles not meant to be Python? Search shows that all of them contain python code, and your example includes an import statement.
They are neither yaml nor Python. Look closely at the code example, this is not valid Python syntax.
Copied from https://github.com/atom/atom/issues/20382
Description
https://snakemake.readthedocs.io/en/stable/ is a popular tool in data science. It parses so-called "Snakefile"s which are similar to "Makefile"s.
The grammar selector detects a "Snakefile" as source.python, but it should be source.yaml. This causes issues with linters and autoformatters like python-black, which should not be run for Snakefiles.
Steps to Reproduce
rule all: input: ["data/foo.root", "data/bar.root"]
rule make_foo: input: "{name}.root" output: "{name}_pv.root" shell: "./make_foo.py {input} {output}"