JetBrains-Research / snakecharm

Plugin for PyCharm / IntelliJ IDEA Platform IDEs which adds support for Snakemake language.
MIT License
61 stars 7 forks source link

Code completion for standard resources keys (mem_mb, etc.) + resource_scopes #556

Open iromeo opened 1 month ago

iromeo commented 1 month ago

See examples in https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#standard-resources

See datails in https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#resources

iromeo commented 1 month ago

Example for resource scopes:

resource_scopes:
    fake_res="local",
    mem_mb="global",

rule a:
    resources:
        mem_mb=20000,
        fake_res=400,
        global_res=1000,
        runtime=80,
    (see https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#resources-and-remote-execution)
iromeo commented 1 month ago

Implement code completion in resources and resource_scopes sections