I'm using Snakemake and it's been rather enjoyable, but I would love it if VSCode stopped complaining about Undefined variable: 'snakemake'
. The issue is that Snakemake runs jobs in such a way that it injects this global into your python scope, but IDEs have no idea that it really is defined. I am wondering if there is a way to get it to do two things:
- Stop complaining, at the least
- Do autocomplete--it should autocomplete based on the rules defined in the
Snakefile
(input, output, params, etc.) and its own APIs.
The VSCode extension for Snakemake only relates to the Snakefile syntax. Elsewhere VSCode uses pylint.
Any ideas?