-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document usage of $PATH for {configuration, virtualenv package}-less virtualenv/flake8 settings #56
Comments
Make a PR for sure if you think that it will be useful for somebody. |
@sadovnychyi thanks for the fast feedback. Answering your questions:
Okay, waiting for feedback from AtomLinter too, then will make a PR.
I'll do my best to be crystal clear in the PR. The gist of it is that, by prepending the
No:
Ping @steelbrain (from upstream Linter): sorry to bother you, I'm thinking this discussion might be of interest to you. Are my suggestions reasonable or am I a crackhead? If the former, is this the right place to talk about the technique? On the flake8 side, would the Linter api let us do something smarter / more automatic? |
@ronjouch I've been awake for almost two days now so my mind isn't completely functioning. but the functioning part of it says that if you want to select executables based on your project, You could modify your
and then make the packages use non-absolute executable paths, for example |
@steelbrain That would work (nit: if instead of assuming a virtualenv per project living in @sadovnychyi but all things considered, I'm proposing a solution to a non-existent problem because launching from an activated virtualenv will do the same path manipulation and is the pythonic way to do. Forget about the manual |
Fix #56 - Document running Atom from an activated virtualenv
Hi, this is not really an "issue", more of a discussion of a nice hack I use that might deserve documentation. If you are interested, feedback welcome, and I can make a PR adding a paragraph at the end of
README.md
.I love this package, but don't like very much having to go to Settings to set my python / $PATH each time I work on a Python 2 project.
→ Since I start Atom from the command-line anyway (
atom /path/to/project_folder/
, for which Atom will remember open files), rather than having to murk with Atom configuration, I set up:flake8
symlink pointing to my non-default flake8 (in my case under Arch Linux,ln -s /usr/bin/flake8-python2 ~/.flake8-python2/flake8
)Then I can start an Atom session...
atom /path/to/vanilla_project/
$PATH
. For example, I start an Atom session for my python2-based dailygrooves withPATH=~/.virtualenvs/dailygrooves/bin:~/.flake8-python2/:$PATH atom ~/projects/dailygrooves/
Repeatable, stateless virtualenv/flake8 Atom environments! 🎉 . Thoughts? I started the same discussion at AtomLinter/linter-flake8#71
The text was updated successfully, but these errors were encountered: