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

Inspections: Warn if snakemake expects sections args to be on next line for multi line arguments #538

Open
iromeo opened this issue Oct 18, 2024 · 0 comments
Assignees
Milestone

Comments

@iromeo
Copy link
Contributor

iromeo commented Oct 18, 2024

module M:
  snakefile: "boo.smk"
  replace_prefix: {
    'boo/doo/' : 'boo_m/doo_m/',
    'boo/out' : 'boo_m/out_m/'
    }
use rule * from M

Snakemake snakemake --snakefile foo.smk -c1 -n fails with:

SyntaxError in file ./playground_project/foo.smk, line 3:
Expecting module keyword, comment or docstrings inside a module definition.:
None

although no syntax error in:

module M:
 snakefile: "boo.smk"
 replace_prefix: {'boo/doo/' : 'boo_m/doo_m/', 'boo/out' : 'boo_m/out_m/'}

use rule * from M

let's make an inspection for that and when it will be fixed, just update YAML config to turn off inspection starting from the version where it is fixed

@iromeo iromeo self-assigned this Oct 18, 2024
@iromeo iromeo added this to the next release milestone Oct 18, 2024
@iromeo iromeo changed the title Warn if snakemake cannot expects sections args to be on next line for multi line arguments Warn if snakemake expects sections args to be on next line for multi line arguments Oct 21, 2024
@iromeo iromeo added the inspections Code inspections label Oct 21, 2024
@iromeo iromeo changed the title Warn if snakemake expects sections args to be on next line for multi line arguments Inspections: Warn if snakemake expects sections args to be on next line for multi line arguments Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant