mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 11:56:52 +00:00
Refactor some bits of flake8.hooks
This commit is contained in:
parent
eae9a6a3db
commit
ba344c8ded
2 changed files with 43 additions and 20 deletions
16
docs/vcs.rst
16
docs/vcs.rst
|
|
@ -32,3 +32,19 @@ settings or environment variables:
|
|||
``flake8.lazy`` or ``FLAKE8_LAZY``
|
||||
If True, also scans those files not added to the index before
|
||||
commit. (defaults to False)
|
||||
|
||||
You can set these either through the git command line
|
||||
|
||||
.. code-block:: bash-session
|
||||
|
||||
$ git config flake8.complexity 10
|
||||
$ git config flake8.strict true
|
||||
|
||||
Or by directly editing ``.git/config`` and adding a section like
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
[flake8]
|
||||
complexity = 10
|
||||
strict = true
|
||||
lazy = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue