Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Support file-local environment variables in pylint setting (and others) #84

Closed
alyssa-kwan-cloverhealth opened this issue Oct 11, 2015 · 4 comments

Comments

@alyssa-kwan-cloverhealth

To accommodate workflows using such tools as pyenv, support file-local environment variables.

pyenv has a pyenv local command, which writes a .python-version file. Shelling into that directory, assuming pyenv is properly enabled in the .profile setup, leads to that specific Python being loaded. In conjunction with pyenv-virtualenv, virtualenvs are supported that get loaded into a $VIRTUAL_ENV variable.

(Sorry for the explanation. Saw in a different issue here on GitHub the statement that the Python ecosystem has no .ruby-version. It, in fact, does.)

Given that, you can obviously set up workspaces. And each Python source file can be tied to a specific $VIRTUAL_ENV/bin/pylint and $PYTHONPATH. Given that, it'd be nice to use these, assuming that pylint is launched per file.

I'm willing to submit a PR, if someone will validate that this is even possible.

@jennykwan
Copy link

Damn it, that's my work GitHub. Contact me here if direct contact needed.

@SpainTrain
Copy link
Member

Would love a PR for this.

It seems possible. As long as you end up with an absolute path (or command that exists in the PATH var that atom has), the command will work. If you want to draw it out in a bit more detail before creating the PR, I am happy to further validate its potential to work.

@SpainTrain
Copy link
Member

related #75

@Arcanemagus
Copy link
Member

Marking this as closed, I think the PYTHONPATH and executable path expansion available covers this, if not please re-open and clarify the issue a bit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants