summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-07-15 19:22:48 +0100
committerGitHub <noreply@github.com>2018-07-15 19:22:48 +0100
commit8141ced0d01e1c4fdd9adfd8c20683d634d737d5 (patch)
tree451c08e1228ad48e10ab695e5301e5446e8d3d48
parent5df735555cec5ab87f3cc74b9870482f921b0fbb (diff)
parent976c048e6e1175ecd4a937926373c155c2e61c11 (diff)
downloadale-8141ced0d01e1c4fdd9adfd8c20683d634d737d5.zip
Merge pull request #1724 from randrej/master
Pipenv virtualenv and project path detection
-rw-r--r--autoload/ale/python.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim
index cdc71cdd..bc1cc980 100644
--- a/autoload/ale/python.vim
+++ b/autoload/ale/python.vim
@@ -6,6 +6,7 @@ let s:sep = has('win32') ? '\' : '/'
let s:bin_dir = has('unix') ? 'bin' : 'Scripts'
let g:ale_virtualenv_dir_names = get(g:, 'ale_virtualenv_dir_names', [
\ '.env',
+\ '.venv',
\ 'env',
\ 've-py3',
\ 've',
@@ -23,6 +24,8 @@ function! ale#python#FindProjectRootIni(buffer) abort
\|| filereadable(l:path . '/mypy.ini')
\|| filereadable(l:path . '/pycodestyle.cfg')
\|| filereadable(l:path . '/flake8.cfg')
+ \|| filereadable(l:path . '/Pipfile')
+ \|| filereadable(l:path . '/Pipfile.lock')
return l:path
endif
endfor