I'm using [Snakemake](https://github.com/snakemake/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:

1. Stop complaining, at the least
2. Do autocomplete--it should autocomplete based on the rules defined in the `Snakefile` (input, output, params, etc.) and its own APIs.

[![Undefined variable: 'snakemake'](https://i.stack.imgur.com/z2saK.png)](https://i.stack.imgur.com/z2saK.png)

The VSCode extension for Snakemake only relates to the Snakefile syntax. Elsewhere VSCode uses pylint.

Any ideas?