Is this possible> Sublime3 + python linter + virtualenv?

I read a lot of conflicting SO posts, looked at all the relevant github issues I could find, and tried a lot of config options in various high resolution files before finally giving up and resorting to this request for help.

As the title says - I would like to use sublime3 + sublime linter + something like pylint to populate my Python code using Python installed in a specific virtual project environment. I'm not sure about the exact toolchain, but as long as it works so well for me.

Please, does anyone know if this is possible - and more importantly, how to actually do it?

Thanks in advance,

+3


source to share


1 answer


Check out SublimePythonIDE (available under Package Management). I believe it uses Pyflakes to pat your default code.

The documentation also shows how to install it to use the interpreter in a virtual environment. I don't think it will actively use your code in a virtual environment, but you will have access to stuff like autocomplete, go to definition, view documentation, etc.



In your project settings:

{
    "folders": [
        {
           "path": "XYZ"
        },
        {
            "path": "ABC"
        }
    ],
    "settings": {
        "python_interpreter": "/path/to/some/virtualenv/bin/python"
    }
}

      

+1


source







All Articles