summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoseph Henrich <crimsonknave@gmail.com>2023-11-16 07:12:40 -0500
committerGitHub <noreply@github.com>2023-11-16 12:12:40 +0000
commit5cddc4c8e1f2fdb68293e0632ce12364c47b7e1d (patch)
tree9183a732e9eff45453cfc793759bf047a644ea76 /doc
parent50e237facda4b9c3761c3f3e9df185cfdf3d91e8 (diff)
downloadale-5cddc4c8e1f2fdb68293e0632ce12364c47b7e1d.zip
Adding support for ruff formatter (#4645)
Diffstat (limited to 'doc')
-rw-r--r--doc/ale-python.txt64
-rw-r--r--doc/ale-supported-languages-and-tools.txt1
-rw-r--r--doc/ale.txt1
3 files changed, 66 insertions, 0 deletions
diff --git a/doc/ale-python.txt b/doc/ale-python.txt
index d7c5cacc..ec118c5a 100644
--- a/doc/ale-python.txt
+++ b/doc/ale-python.txt
@@ -1323,6 +1323,70 @@ g:ale_python_ruff_auto_poetry *g:ale_python_ruff_auto_poetry*
===============================================================================
+ruff-format *ale-python-ruff-format*
+
+g:ale_python_ruff_format_change_directory
+ *g:ale_python_ruff_format_change_directory*
+ *b:ale_python_ruff_format_change_directory*
+ Type: |Number|
+ Default: `1`
+
+ If set to `1`, `ruff` will be run from a detected project root, per
+ |ale-python-root|. if set to `0` or no project root detected,
+ `ruff` will be run from the buffer's directory.
+
+
+g:ale_python_ruff_format_executable *g:ale_python_ruff_format_executable*
+ *b:ale_python_ruff_format_executable*
+ Type: |String|
+ Default: `'ruff'`
+
+ See |ale-integrations-local-executables|
+
+ Set this to `'pipenv'` to invoke `'pipenv` `run` `ruff'`.
+ Set this to `'poetry'` to invoke `'poetry` `run` `ruff'`.
+
+
+g:ale_python_ruff_format_options *g:ale_python_ruff_format_options*
+ *b:ale_python_ruff_format_options*
+ Type: |String|
+ Default: `''`
+
+ This variable can be changed to add command-line arguments to the ruff
+ invocation.
+
+ For example, to select/enable and/or disable some error codes,
+ you may want to set >
+ let g:ale_python_ruff_format_options = '--ignore F401'
+
+
+g:ale_python_ruff_format_use_global *g:ale_python_ruff_format_use_global*
+ *b:ale_python_ruff_format_use_global*
+ Type: |Number|
+ Default: `get(g:, 'ale_use_global_executables', 0)`
+
+ See |ale-integrations-local-executables|
+
+
+g:ale_python_ruff_format_auto_pipenv *g:ale_python_ruff_format_auto_pipenv*
+ *b:ale_python_ruff_format_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_ruff_format_auto_poetry *g:ale_python_ruff_format_auto_poetry*
+ *b:ale_python_ruff_format_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.
+
+
+===============================================================================
unimport *ale-python-unimport*
`unimport` will be run from a detected project root, per |ale-python-root|.
diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt
index b973b8b4..939b9870 100644
--- a/doc/ale-supported-languages-and-tools.txt
+++ b/doc/ale-supported-languages-and-tools.txt
@@ -505,6 +505,7 @@ Notes:
* `refurb`
* `reorder-python-imports`
* ruff
+ * ruff-format
* `unimport`
* `vulture`!!
* `yapf`
diff --git a/doc/ale.txt b/doc/ale.txt
index 9b25e6ec..a2362ddc 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -3303,6 +3303,7 @@ documented in additional help files.
refurb................................|ale-python-refurb|
reorder-python-imports................|ale-python-reorder_python_imports|
ruff..................................|ale-python-ruff|
+ ruff-format...........................|ale-python-ruff-format|
unimport..............................|ale-python-unimport|
vulture...............................|ale-python-vulture|
yapf..................................|ale-python-yapf|