summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authora666 <19142162+a666@users.noreply.github.com>2021-10-02 02:37:57 -0500
committerGitHub <noreply@github.com>2021-10-02 16:37:57 +0900
commitf9deee0e416f626d8597e3e6ea8e89172e5aaa78 (patch)
treeb793e6ae6fbc081b4efc7a253469bb5e420acf19 /doc
parent19b0f72c237b861d46cefbc30a745da401e10c65 (diff)
downloadale-f9deee0e416f626d8597e3e6ea8e89172e5aaa78.zip
Add flakehell python linter (#3295) (#3921)
Diffstat (limited to 'doc')
-rw-r--r--doc/ale-python.txt63
-rw-r--r--doc/ale-supported-languages-and-tools.txt1
-rw-r--r--doc/ale.txt1
3 files changed, 65 insertions, 0 deletions
diff --git a/doc/ale-python.txt b/doc/ale-python.txt
index 8f0d8ffa..10cc2897 100644
--- a/doc/ale-python.txt
+++ b/doc/ale-python.txt
@@ -320,6 +320,69 @@ g:ale_python_flake8_auto_poetry *g:ale_python_flake8_auto_poetry*
Detect whether the file is inside a poetry, and set the executable to `poetry`
if true. This is overridden by a manually-set executable.
+===============================================================================
+flakehell *ale-python-flakehell*
+
+g:ale_python_flakehell_change_directory*g:ale_python_flakehell_change_directory*
+ *b:ale_python_flakehell_change_directory*
+ Type: |String|
+ Default: `project`
+
+ If set to `project`, ALE will switch to the project root before checking file.
+ If set to `file`, ALE will switch to directory the Python file being
+ checked with `flakehell` is in before checking it.
+ You can turn it off with `off` option if you want to control the directory
+ Python is executed from yourself.
+
+
+g:ale_python_flakehell_executable *g:ale_python_flakehell_executable*
+ *b:ale_python_flakehell_executable*
+ Type: |String|
+ Default: `'flakehell'`
+
+ This variable can be changed to modify the executable used for flakehell. Set
+ this to `'pipenv'` to invoke `'pipenv` `run` `flakehell'`. Set this to
+ `'poetry'` to invoke `'poetry` `run` `flakehell'`. Set this to `'python'` to
+ invoke `'python` `-m` `flakehell'`.
+
+
+g:ale_python_flakehell_options *g:ale_python_flakehell_options*
+ *b:ale_python_flakehell_options*
+ Type: |String|
+ Default: `''`
+
+ This variable can be changed to add command-line arguments to the flakehell
+ lint invocation.
+
+
+g:ale_python_flakehell_use_global *g:ale_python_flakehell_use_global*
+ *b:ale_python_flakehell_use_global*
+ Type: |Number|
+ Default: `get(g:, 'ale_use_global_executables', 0)`
+
+ This variable controls whether or not ALE will search for flakehell in a
+ virtualenv directory first. If this variable is set to `1`, then ALE will
+ always use |g:ale_python_flakehell_executable| for the executable path.
+
+ Both variables can be set with `b:` buffer variables instead.
+
+
+g:ale_python_flakehell_auto_pipenv *g:ale_python_flakehell_auto_pipenv*
+ *b:ale_python_flakehell_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_flakehell_auto_poetry *g:ale_python_flakehell_auto_poetry*
+ *b:ale_python_flakehell_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.
===============================================================================
isort *ale-python-isort*
diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt
index fb244c88..5617b33d 100644
--- a/doc/ale-supported-languages-and-tools.txt
+++ b/doc/ale-supported-languages-and-tools.txt
@@ -419,6 +419,7 @@ Notes:
* `bandit`
* `black`
* `flake8`
+ * `flakehell`
* `isort`
* `mypy`
* `prospector`!!
diff --git a/doc/ale.txt b/doc/ale.txt
index 15ebb5ed..f58dba01 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -2953,6 +2953,7 @@ documented in additional help files.
bandit................................|ale-python-bandit|
black.................................|ale-python-black|
flake8................................|ale-python-flake8|
+ flakehell.............................|ale-python-flakehell|
isort.................................|ale-python-isort|
mypy..................................|ale-python-mypy|
prospector............................|ale-python-prospector|