diff --git a/ale_linters/python/bandit.vim b/ale_linters/python/bandit.vim index ba48c3a8..b343a1c5 100644 --- a/ale_linters/python/bandit.vim +++ b/ale_linters/python/bandit.vim @@ -45,7 +45,7 @@ function! ale_linters#python#bandit#GetCommand(buffer) abort endif endif - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run bandit' \ : '' diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index 12dca84a..2685f61a 100644 --- a/ale_linters/python/flake8.vim +++ b/ale_linters/python/flake8.vim @@ -74,7 +74,7 @@ endfunction function! ale_linters#python#flake8#GetCommand(buffer, version) abort let l:executable = ale_linters#python#flake8#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run flake8' \ : '' diff --git a/ale_linters/python/flakehell.vim b/ale_linters/python/flakehell.vim index 9ff0f18f..a5b466b8 100644 --- a/ale_linters/python/flakehell.vim +++ b/ale_linters/python/flakehell.vim @@ -74,7 +74,7 @@ endfunction function! ale_linters#python#flakehell#GetCommand(buffer, version) abort let l:executable = ale_linters#python#flakehell#GetExecutable(a:buffer) - if (l:executable =~? 'pipenv\|poetry\|uv$') + if (l:executable =~? '\(pipenv\|poetry\|uv\)$') let l:exec_args = ' run flakehell' elseif (l:executable is? 'python') let l:exec_args = ' -m flakehell' diff --git a/ale_linters/python/jedils.vim b/ale_linters/python/jedils.vim index 46b2896b..2d4a97c3 100644 --- a/ale_linters/python/jedils.vim +++ b/ale_linters/python/jedils.vim @@ -28,7 +28,7 @@ endfunction function! ale_linters#python#jedils#GetCommand(buffer) abort let l:executable = ale_linters#python#jedils#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run jedi-language-server' \ : '' let l:env_string = '' diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim index 586a4381..27d2726b 100644 --- a/ale_linters/python/mypy.vim +++ b/ale_linters/python/mypy.vim @@ -49,7 +49,7 @@ endfunction function! ale_linters#python#mypy#GetCommand(buffer) abort let l:executable = ale_linters#python#mypy#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run mypy' \ : '' diff --git a/ale_linters/python/prospector.vim b/ale_linters/python/prospector.vim index c40f25c5..29aad060 100644 --- a/ale_linters/python/prospector.vim +++ b/ale_linters/python/prospector.vim @@ -35,7 +35,7 @@ endfunction function! ale_linters#python#prospector#GetCommand(buffer) abort let l:executable = ale_linters#python#prospector#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run prospector' \ : '' diff --git a/ale_linters/python/pycln.vim b/ale_linters/python/pycln.vim index 774c6b04..23d48676 100644 --- a/ale_linters/python/pycln.vim +++ b/ale_linters/python/pycln.vim @@ -42,7 +42,7 @@ endfunction function! ale_linters#python#pycln#GetCommand(buffer, version) abort let l:executable = ale_linters#python#pycln#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pycln' \ : '' diff --git a/ale_linters/python/pycodestyle.vim b/ale_linters/python/pycodestyle.vim index bd3584b8..282e545b 100644 --- a/ale_linters/python/pycodestyle.vim +++ b/ale_linters/python/pycodestyle.vim @@ -30,7 +30,7 @@ endfunction function! ale_linters#python#pycodestyle#GetCommand(buffer) abort let l:executable = ale_linters#python#pycodestyle#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pycodestyle' \ : '' diff --git a/ale_linters/python/pydocstyle.vim b/ale_linters/python/pydocstyle.vim index b012dd43..6293df7b 100644 --- a/ale_linters/python/pydocstyle.vim +++ b/ale_linters/python/pydocstyle.vim @@ -29,7 +29,7 @@ endfunction function! ale_linters#python#pydocstyle#GetCommand(buffer) abort let l:executable = ale_linters#python#pydocstyle#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pydocstyle' \ : '' diff --git a/ale_linters/python/pyflakes.vim b/ale_linters/python/pyflakes.vim index fc0a3fa7..f46772dc 100644 --- a/ale_linters/python/pyflakes.vim +++ b/ale_linters/python/pyflakes.vim @@ -29,7 +29,7 @@ endfunction function! ale_linters#python#pyflakes#GetCommand(buffer) abort let l:executable = ale_linters#python#pyflakes#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pyflakes' \ : '' diff --git a/ale_linters/python/pylama.vim b/ale_linters/python/pylama.vim index 6555b409..626974f8 100644 --- a/ale_linters/python/pylama.vim +++ b/ale_linters/python/pylama.vim @@ -30,7 +30,7 @@ endfunction function! ale_linters#python#pylama#RunWithVersionCheck(buffer) abort let l:executable = ale_linters#python#pylama#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pylama' \ : '' @@ -59,7 +59,7 @@ endfunction function! ale_linters#python#pylama#GetCommand(buffer, version) abort let l:executable = ale_linters#python#pylama#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pylama' \ : '' diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index 90aa5f1c..ba69d666 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -44,7 +44,7 @@ endfunction function! ale_linters#python#pylint#GetCommand(buffer, version) abort let l:executable = ale_linters#python#pylint#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pylint' \ : '' diff --git a/ale_linters/python/pylsp.vim b/ale_linters/python/pylsp.vim index d3db6e82..75ec3884 100644 --- a/ale_linters/python/pylsp.vim +++ b/ale_linters/python/pylsp.vim @@ -43,7 +43,7 @@ endfunction function! ale_linters#python#pylsp#GetCommand(buffer) abort let l:executable = ale_linters#python#pylsp#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pylsp' \ : '' let l:env_string = '' diff --git a/ale_linters/python/pyre.vim b/ale_linters/python/pyre.vim index 177f1cb5..745d669a 100644 --- a/ale_linters/python/pyre.vim +++ b/ale_linters/python/pyre.vim @@ -28,7 +28,7 @@ endfunction function! ale_linters#python#pyre#GetCommand(buffer) abort let l:executable = ale_linters#python#pyre#GetExecutable(a:buffer) - let l:exec_args = (l:executable =~? 'pipenv\|poetry\|uv$' ? ' run pyre' : '') . ' persistent' + let l:exec_args = (l:executable =~? '\(pipenv\|poetry\|uv\)$' ? ' run pyre' : '') . ' persistent' return ale#Escape(l:executable) . l:exec_args endfunction diff --git a/ale_linters/python/pyright.vim b/ale_linters/python/pyright.vim index 993ed075..95443a13 100644 --- a/ale_linters/python/pyright.vim +++ b/ale_linters/python/pyright.vim @@ -70,7 +70,7 @@ endfunction function! ale_linters#python#pyright#GetCommand(buffer) abort let l:executable = ale_linters#python#pyright#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pyright-langserver' \ : '' let l:env_string = '' diff --git a/ale_linters/python/refurb.vim b/ale_linters/python/refurb.vim index 7f92948a..1acd4cee 100644 --- a/ale_linters/python/refurb.vim +++ b/ale_linters/python/refurb.vim @@ -41,7 +41,7 @@ endfunction function! ale_linters#python#refurb#GetCommand(buffer) abort let l:executable = ale_linters#python#refurb#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run refurb' \ : '' diff --git a/ale_linters/python/ruff.vim b/ale_linters/python/ruff.vim index 25ae2d91..8eb55164 100644 --- a/ale_linters/python/ruff.vim +++ b/ale_linters/python/ruff.vim @@ -47,7 +47,7 @@ endfunction function! ale_linters#python#ruff#GetCommand(buffer, version) abort let l:executable = ale_linters#python#ruff#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run ruff' \ : '' diff --git a/ale_linters/python/unimport.vim b/ale_linters/python/unimport.vim index 06dbc436..1496fc42 100644 --- a/ale_linters/python/unimport.vim +++ b/ale_linters/python/unimport.vim @@ -28,7 +28,7 @@ endfunction function! ale_linters#python#unimport#GetCommand(buffer) abort let l:executable = ale_linters#python#unimport#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run unimport' \ : '' diff --git a/ale_linters/python/vulture.vim b/ale_linters/python/vulture.vim index 2ac05e43..c44638b9 100644 --- a/ale_linters/python/vulture.vim +++ b/ale_linters/python/vulture.vim @@ -47,7 +47,7 @@ endfunction function! ale_linters#python#vulture#GetCommand(buffer) abort let l:executable = ale_linters#python#vulture#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run vulture' \ : '' let l:lint_dest = ale#Var(a:buffer, 'python_vulture_change_directory') diff --git a/autoload/ale/fixers/autoflake.vim b/autoload/ale/fixers/autoflake.vim index c2530051..9f8b04fc 100644 --- a/autoload/ale/fixers/autoflake.vim +++ b/autoload/ale/fixers/autoflake.vim @@ -30,7 +30,7 @@ endfunction function! ale#fixers#autoflake#Fix(buffer) abort let l:executable = ale#fixers#autoflake#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run autoflake' \ : '' diff --git a/autoload/ale/fixers/autoimport.vim b/autoload/ale/fixers/autoimport.vim index 686da124..8d35419e 100644 --- a/autoload/ale/fixers/autoimport.vim +++ b/autoload/ale/fixers/autoimport.vim @@ -30,7 +30,7 @@ endfunction function! ale#fixers#autoimport#Fix(buffer) abort let l:executable = ale#fixers#autoimport#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run autoimport' \ : '' diff --git a/autoload/ale/fixers/autopep8.vim b/autoload/ale/fixers/autopep8.vim index 6b5adfce..f9af46f8 100644 --- a/autoload/ale/fixers/autopep8.vim +++ b/autoload/ale/fixers/autopep8.vim @@ -30,7 +30,7 @@ endfunction function! ale#fixers#autopep8#Fix(buffer) abort let l:executable = ale#fixers#autopep8#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run autopep8' \ : '' diff --git a/autoload/ale/fixers/black.vim b/autoload/ale/fixers/black.vim index 4fe239ff..624e5459 100644 --- a/autoload/ale/fixers/black.vim +++ b/autoload/ale/fixers/black.vim @@ -32,7 +32,7 @@ function! ale#fixers#black#Fix(buffer) abort let l:executable = ale#fixers#black#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'black']) endif diff --git a/autoload/ale/fixers/isort.vim b/autoload/ale/fixers/isort.vim index c4eef3cc..45083ee8 100644 --- a/autoload/ale/fixers/isort.vim +++ b/autoload/ale/fixers/isort.vim @@ -31,7 +31,7 @@ function! ale#fixers#isort#GetCmd(buffer) abort let l:executable = ale#fixers#isort#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'isort']) endif @@ -42,7 +42,7 @@ function! ale#fixers#isort#FixForVersion(buffer, version) abort let l:executable = ale#fixers#isort#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'isort']) endif diff --git a/autoload/ale/fixers/pycln.vim b/autoload/ale/fixers/pycln.vim index 4ee2373d..ca15cc4e 100644 --- a/autoload/ale/fixers/pycln.vim +++ b/autoload/ale/fixers/pycln.vim @@ -42,7 +42,7 @@ endfunction function! ale#fixers#pycln#GetCommand(buffer) abort let l:executable = ale#fixers#pycln#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run pycln' \ : '' @@ -53,7 +53,7 @@ function! ale#fixers#pycln#FixForVersion(buffer, version) abort let l:executable = ale#fixers#pycln#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'pycln']) endif diff --git a/autoload/ale/fixers/pyflyby.vim b/autoload/ale/fixers/pyflyby.vim index f6f289e3..d5c2d235 100644 --- a/autoload/ale/fixers/pyflyby.vim +++ b/autoload/ale/fixers/pyflyby.vim @@ -33,7 +33,7 @@ function! ale#fixers#pyflyby#Fix(buffer) abort let l:executable = ale#fixers#pyflyby#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'tidy-imports']) endif diff --git a/autoload/ale/fixers/reorder_python_imports.vim b/autoload/ale/fixers/reorder_python_imports.vim index 3cc76a9f..6e10c1d6 100644 --- a/autoload/ale/fixers/reorder_python_imports.vim +++ b/autoload/ale/fixers/reorder_python_imports.vim @@ -30,7 +30,7 @@ endfunction function! ale#fixers#reorder_python_imports#Fix(buffer) abort let l:executable = ale#fixers#reorder_python_imports#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run reorder-python-imports' \ : '' diff --git a/autoload/ale/fixers/ruff.vim b/autoload/ale/fixers/ruff.vim index c2bea3e3..c0c3cd62 100644 --- a/autoload/ale/fixers/ruff.vim +++ b/autoload/ale/fixers/ruff.vim @@ -41,7 +41,7 @@ endfunction function! ale#fixers#ruff#GetCommand(buffer) abort let l:executable = ale#fixers#ruff#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run ruff' \ : '' @@ -52,7 +52,7 @@ function! ale#fixers#ruff#FixForVersion(buffer, version) abort let l:executable = ale#fixers#ruff#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'ruff']) endif diff --git a/autoload/ale/fixers/ruff_format.vim b/autoload/ale/fixers/ruff_format.vim index e852dd24..cfa7b76d 100644 --- a/autoload/ale/fixers/ruff_format.vim +++ b/autoload/ale/fixers/ruff_format.vim @@ -41,7 +41,7 @@ endfunction function! ale#fixers#ruff_format#GetCommand(buffer) abort let l:executable = ale#fixers#ruff_format#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run ruff' \ : '' @@ -52,7 +52,7 @@ function! ale#fixers#ruff_format#Fix(buffer) abort let l:executable = ale#fixers#ruff_format#GetExecutable(a:buffer) let l:cmd = [ale#Escape(l:executable)] - if l:executable =~? 'pipenv\|poetry\|uv$' + if l:executable =~? '\(pipenv\|poetry\|uv\)$' call extend(l:cmd, ['run', 'ruff']) endif diff --git a/autoload/ale/fixers/yapf.vim b/autoload/ale/fixers/yapf.vim index 22822a6e..cbc3d46d 100644 --- a/autoload/ale/fixers/yapf.vim +++ b/autoload/ale/fixers/yapf.vim @@ -29,7 +29,7 @@ endfunction function! ale#fixers#yapf#Fix(buffer) abort let l:executable = ale#fixers#yapf#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv\|poetry\|uv$' + let l:exec_args = l:executable =~? '\(pipenv\|poetry\|uv\)$' \ ? ' run yapf' \ : ''