mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
Add documentation for --install-hook
This commit is contained in:
parent
8a18cfa4a3
commit
8bb3048775
1 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue