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

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

Open
iromeo opened this issue Oct 21, 2024 · 2 comments
Open

Comments

@iromeo
Copy link
Contributor

iromeo commented Oct 21, 2024

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

  • mem, mem_mb, mem_mib, ...
  • disk, disk_mb, disk_mib, ...
  • tmp_dir
  • runtime

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

@iromeo
Copy link
Contributor Author

iromeo commented Oct 21, 2024

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 iromeo changed the title Code completion for standard resources keys (mem_mb, etc.) Code completion for standard resources keys (mem_mb, etc.) + resource_scopes Oct 21, 2024
@iromeo
Copy link
Contributor Author

iromeo commented Oct 21, 2024

Implement code completion in resources and resource_scopes sections

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