mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
[python/pyre.vim] use pyrefly executable (#4972)
https://github.com/facebook/pyrefly The pyre project has evolved to pyrefly. This replaces the pyre linter with a pyrefly one and removes the test files that were added for finding the project root in the old pyre world. Co-authored-by: Oliver Ruben Albertini <oliverruben@gmail.com>
This commit is contained in:
@@ -1616,6 +1616,69 @@ g:ale_python_pyre_auto_uv
|
||||
executable.
|
||||
|
||||
|
||||
===============================================================================
|
||||
pyrefly *ale-python-pyrefly*
|
||||
|
||||
`pyrefly` will be run from a detected project root, per |ale-python-root|.
|
||||
|
||||
*ale-options.python_pyrefly_executable*
|
||||
*g:ale_python_pyrefly_executable*
|
||||
*b:ale_python_pyrefly_executable*
|
||||
python_pyrefly_executable
|
||||
g:ale_python_pyrefly_executable
|
||||
Type: |String|
|
||||
Default: `'pyrefly'`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
Set this to `'pipenv'` to invoke `'pipenv` `run` `pyrefly'`.
|
||||
Set this to `'poetry'` to invoke `'poetry` `run` `pyrefly'`.
|
||||
Set this to `'uv'` to invoke `'uv` `run` `pyrefly'`.
|
||||
|
||||
*ale-options.python_pyrefly_use_global*
|
||||
*g:ale_python_pyrefly_use_global*
|
||||
*b:ale_python_pyrefly_use_global*
|
||||
python_pyrefly_use_global
|
||||
g:ale_python_pyrefly_use_global
|
||||
Type: |Number|
|
||||
Default: `get(g:, 'ale_use_global_executables', 0)`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
*ale-options.python_pyrefly_auto_pipenv*
|
||||
*g:ale_python_pyrefly_auto_pipenv*
|
||||
*b:ale_python_pyrefly_auto_pipenv*
|
||||
python_pyrefly_auto_pipenv
|
||||
g:ale_python_pyrefly_auto_pipenv
|
||||
Type: |Number|
|
||||
Default: `0`
|
||||
|
||||
Detect whether the file is inside a pipenv, and set the executable to `pipenv`
|
||||
if true. This is overridden by a manually-set executable.
|
||||
|
||||
*ale-options.python_pyrefly_auto_poetry*
|
||||
*g:ale_python_pyrefly_auto_poetry*
|
||||
*b:ale_python_pyrefly_auto_poetry*
|
||||
python_pyrefly_auto_poetry
|
||||
g:ale_python_pyrefly_auto_poetry
|
||||
Type: |Number|
|
||||
Default: `0`
|
||||
|
||||
Detect whether the file is inside a poetry, and set the executable to `poetry`
|
||||
if true. This is overridden by a manually-set executable.
|
||||
|
||||
*ale-options.python_pyrefly_auto_uv*
|
||||
*g:ale_python_pyrefly_auto_uv*
|
||||
*b:ale_python_pyrefly_auto_uv*
|
||||
python_pyrefly_auto_uv
|
||||
g:ale_python_pyrefly_auto_uv
|
||||
Type: |Number|
|
||||
Default: `0`
|
||||
|
||||
Set the executable to `uv` if true. This is overridden by a manually-set
|
||||
executable.
|
||||
|
||||
|
||||
===============================================================================
|
||||
pyright *ale-python-pyright*
|
||||
|
||||
|
||||
@@ -545,6 +545,7 @@ Notes:
|
||||
* `pylint`!!
|
||||
* `pylsp`
|
||||
* `pyre`
|
||||
* `pyrefly`
|
||||
* `pyright`
|
||||
* `refurb`
|
||||
* `reorder-python-imports`
|
||||
|
||||
@@ -3788,6 +3788,7 @@ documented in additional help files.
|
||||
pylint................................|ale-python-pylint|
|
||||
pylsp.................................|ale-python-pylsp|
|
||||
pyre..................................|ale-python-pyre|
|
||||
pyrefly...............................|ale-python-pyrefly|
|
||||
pyright...............................|ale-python-pyright|
|
||||
refurb................................|ale-python-refurb|
|
||||
reorder-python-imports................|ale-python-reorder_python_imports|
|
||||
|
||||
Reference in New Issue
Block a user