diff options
-rw-r--r-- | autoload/ale/python.vim | 1 | ||||
-rw-r--r-- | doc/ale.txt | 2 | ||||
-rw-r--r-- | test/command_callback/test_flake8_command_callback.vader | 2 | ||||
-rw-r--r-- | test/handler/test_flake8_handler.vader | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index 117b0efe..82dd9d7c 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -10,6 +10,7 @@ let g:ale_virtualenv_dir_names = get(g:, 'ale_virtualenv_dir_names', [ \ 've-py3', \ 've', \ 'virtualenv', +\ 'venv', \]) function! ale#python#FindProjectRootIni(buffer) abort diff --git a/doc/ale.txt b/doc/ale.txt index 33f9fdfe..f16858e6 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1397,7 +1397,7 @@ g:ale_virtualenv_dir_names *g:ale_virtualenv_dir_names* b:ale_virtualenv_dir_names *b:ale_virtualenv_dir_names* Type: |List| - Default: `['.env', 'env', 've-py3', 've', 'virtualenv']` + Default: `['.env', 'env', 've-py3', 've', 'virtualenv', 'venv']` A list of directory names to be used when searching upwards from Python files to discover virtulenv directories with. diff --git a/test/command_callback/test_flake8_command_callback.vader b/test/command_callback/test_flake8_command_callback.vader index 47d5c0fd..8cb4ded2 100644 --- a/test/command_callback/test_flake8_command_callback.vader +++ b/test/command_callback/test_flake8_command_callback.vader @@ -158,7 +158,7 @@ Execute(Using `python -m flake8` should be supported for running flake8): \ ale#Escape('python') . ' -m flake8 --some-option --format=default -', \ ale_linters#python#flake8#GetCommand(bufnr(''), ['2.9.9']) -Execute(Using `python2 -m flake8` should be use with the old args option): +Execute(Using `python2 -m flake8` should be supported with the old args option): let g:ale_python_flake8_executable = 'python2' let g:ale_python_flake8_args = '-m flake8' let g:ale_python_flake8_use_global = 0 diff --git a/test/handler/test_flake8_handler.vader b/test/handler/test_flake8_handler.vader index 8b440392..492941c9 100644 --- a/test/handler/test_flake8_handler.vader +++ b/test/handler/test_flake8_handler.vader @@ -48,7 +48,7 @@ Execute(The flake8 handler should handle basic warnings and syntax errors): \ 'stdin:8:3: E999 SyntaxError: invalid syntax', \ ]) -Execute(The flake8 handler should set end column indexes should be set for certain errors): +Execute(The flake8 handler should set end column indexes for certain errors): AssertEqual \ [ \ { |