summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorvalentin <valentin@too.gy>2017-01-18 13:42:11 +0100
committerAnthony Sottile <asottile@umich.edu>2021-03-14 11:53:03 -0700
commitac9c66e80bed84e78fbb803e6dd9e33cc4c741ca (patch)
treec526d34301f1f56706d856fdc02063230a188097 /docs
parentfd71b8650988d1ac74fd262ed96d11da1966c412 (diff)
downloadflake8-ac9c66e80bed84e78fbb803e6dd9e33cc4c741ca.tar.gz
Add indent-size option
Diffstat (limited to 'docs')
-rw-r--r--docs/source/user/options.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/source/user/options.rst b/docs/source/user/options.rst
index 5e62453..d2c0edb 100644
--- a/docs/source/user/options.rst
+++ b/docs/source/user/options.rst
@@ -64,6 +64,8 @@ Index of Options
- :option:`flake8 --max-doc-length`
+- :option:`flake8 --indent-size`
+
- :option:`flake8 --select`
- :option:`flake8 --disable-noqa`
@@ -570,6 +572,27 @@ Options and their Descriptions
max-doc-length = 79
+.. option:: --indent-size=<n>
+
+ :ref:`Go back to index <top>`
+
+ Set the number of spaces used for indentation.
+
+ By default, 4.
+
+ Command-line example:
+
+ .. prompt:: bash
+
+ flake8 --indent-size 2 dir/
+
+ This **can** be specified in config files.
+
+ Example config file usage:
+
+ .. code-block:: ini
+
+ indent-size = 2
.. option:: --select=<errors>