Fixes#8343 since `__sls__` is now available in `__state__` and not on `kwargs`.
Closes#8709 since it's not the right approach.
Fixes#8710 and closes#8711 since I've cherry-picked the fix for #8710 in from #8711.
`W0142` is triggered when `*` or `**` magic is used, for example:
```python
my_func(*args, **kwargs)
```
This PyLint checker is now disabled since we use it quite a lot, and, in fact, take advantage of this magic.
The encoded string now looks like:
```python
import os, sys
if 'VIRTUAL_ENV' in os.environ:
ve_dir = os.environ['VIRTUAL_ENV']
ve_dir in sys.path or sys.path.insert(0, ve_dir)
activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')
# Fix for windows
if not os.path.exists(activate_this):
activate_this = os.path.join(os.path.join(ve_dir, 'Scripts'), 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
```
Include the current active virtualenv into pylint's init-hook.
The `base64` encoded string is:
```python
import sys, os
if 'VIRTUAL_ENV' not in os.environ:
sys.exit(0)
ve_dir = os.environ['VIRTUAL_ENV']
ve_dir in sys.path or sys.path.insert(0, ve_dir)
activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')
if not os.path.exists(activate_this):
activate_this = os.path.join(os.path.join(ve_dir, 'Scripts'), 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
```