summaryrefslogtreecommitdiff
path: root/doc/ale-python.txt
diff options
context:
space:
mode:
authorYining <zhang.yining@gmail.com>2022-12-06 23:26:09 +1100
committerGitHub <noreply@github.com>2022-12-06 21:26:09 +0900
commitcad8f8e68338221e157adb1fffbe8eb16c430fe0 (patch)
tree87cce6cbd6fcbe8d4013eaf049031def84af0875 /doc/ale-python.txt
parent5ce2bf84ca00cee8f375f108952789302980ae57 (diff)
downloadale-cad8f8e68338221e157adb1fffbe8eb16c430fe0.zip
add: support for refurb as a Python linter (#4379)
this commit adds refurb as a Python linter, together with some tests and documentation. it should fix issue: #4362 refurb repo: https://github.com/dosisod/refurb
Diffstat (limited to 'doc/ale-python.txt')
-rw-r--r--doc/ale-python.txt61
1 files changed, 61 insertions, 0 deletions
diff --git a/doc/ale-python.txt b/doc/ale-python.txt
index 6badcff3..07f54db8 100644
--- a/doc/ale-python.txt
+++ b/doc/ale-python.txt
@@ -1086,6 +1086,67 @@ g:ale_python_pyright_config *g:ale_python_pyright_config*
<
===============================================================================
+refurb *ale-python-refurb*
+
+g:ale_python_refurb_change_directory *g:ale_python_refurb_change_directory*
+ *b:ale_python_refurb_change_directory*
+ Type: |Number|
+ Default: `1`
+
+ If set to `1`, `refurb` will be run from a detected project root, per
+ |ale-python-root|. if set to `0` or no project root detected,
+ `refurb` will be run from the buffer's directory.
+
+
+g:ale_python_refurb_executable *g:ale_python_refurb_executable*
+ *b:ale_python_refurb_executable*
+ Type: |String|
+ Default: `'refurb'`
+
+ See |ale-integrations-local-executables|
+
+ Set this to `'pipenv'` to invoke `'pipenv` `run` `refurb'`.
+ Set this to `'poetry'` to invoke `'poetry` `run` `refurb'`.
+
+
+g:ale_python_refurb_options *g:ale_python_refurb_options*
+ *b:ale_python_refurb_options*
+ Type: |String|
+ Default: `''`
+
+ This variable can be changed to add command-line arguments to the refurb
+ invocation.
+
+ For example, to select/enable and/or disable some error codes,
+ you may want to set >
+ let g:ale_python_refurb_options = '--ignore 100'
+g:ale_python_refurb_use_global *g:ale_python_refurb_use_global*
+ *b:ale_python_refurb_use_global*
+ Type: |Number|
+ Default: `get(g:, 'ale_use_global_executables', 0)`
+
+ See |ale-integrations-local-executables|
+
+
+g:ale_python_refurb_auto_pipenv *g:ale_python_refurb_auto_pipenv*
+ *b:ale_python_refurb_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.
+
+
+g:ale_python_refurb_auto_poetry *g:ale_python_refurb_auto_poetry*
+ *b:ale_python_refurb_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.
+
+
+===============================================================================
reorder-python-imports *ale-python-reorder_python_imports*
g:ale_python_reorder_python_imports_executable