Refactor some bits of flake8.hooks

This commit is contained in:
Ian Cordasco 2015-02-22 22:29:13 -06:00
parent eae9a6a3db
commit ba344c8ded
2 changed files with 43 additions and 20 deletions

View file

@ -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