summaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/user/options.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/source/user/options.rst b/docs/source/user/options.rst
index 9e998ee..69aec6e 100644
--- a/docs/source/user/options.rst
+++ b/docs/source/user/options.rst
@@ -492,6 +492,28 @@
This **can not** be specified in config files.
+.. option:: --install-hook=VERSION_CONTROL_SYSTEM
+
+ Install a hook for your version control system that is executed before
+ or during commit.
+
+ The available options are:
+
+ - git
+ - mercurial
+
+ Command-line usage:
+
+ .. prompt:: bash
+
+ flake8 --install-hook=git
+ flake8 --install-hook=mercurial
+
+ This **can not** be specified in config files.
+
+Thank you for your contribution to Flake8's documentation.
+
+
.. option:: --jobs=<n>
Specify the number of subprocesses that Flake8 will use to run checks in